Write a modified Dijkstra algorithm for: A problem is whether a vehicle is able to traverse from any location to any loc

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a modified Dijkstra algorithm for: A problem is whether a vehicle is able to traverse from any location to any loc

Post by answerhappygod »

Write a modified Dijkstra algorithm for:
A problem is whether a vehicle is able to traverse from anylocation to any location in the graph with a constrain - a vehiclecan only fill up its tank 'x' times.
Notes:
- Vehicle starts empty
- The graph is an undirected graph with weight as how much thefuel is being consumed.
- Every vertex has a gas station.
- How much the fuel tank can hold is 'y'
Hints:
- The shortest path is not always possible (with the limitedtimes we can fill up the fuel tank).
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply