Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Roads in the city of Winterville are organized as a tree. Every snowy morning a

ID: 3534828 • Letter: R

Question

Roads in the city of Winterville are organized as a tree. Every snowy morning a snow plow

goes around clearing roads in the city with the goal of clearing as many intersections as

possible. It starts from a depot at the root of the tree and returns to the depot at the end of

the day.

When the roads are really bad, the snow plow cannot clear all intersections during the day.

Give a strongly polynomial time algorithm to determine what route it should take to clear

as many as possible by a certain deadline. Assume that you are given the precise (integral)

amount of time it will take the plow to go over each road.

Explanation / Answer

You can go for Minimum Spanning Tree algorithm like Prim;s Algorithm or Kruskal Algorithm which run in O(V+E) running time that is approximately O(V^2)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote