350 views
1 votes
1 votes
Suppose you want to get from s to t on weighted graph G with nonnegative edge weights, but you would like to stop by u if it isn’t too inconvenient. (Here too inconvenient means that it increases the length of your travel by more than 10%.) Describe an efficient algorithm that would determine an optimal s to t path given your preference for stopping at u along the way if not too inconvenient. It should either return the shortest path from s to t, or the shortest path from s to t containing u.

Please log in or register to answer this question.

Related questions

1 votes
1 votes
1 answer
2
1 votes
1 votes
1 answer
3
rsansiya111 asked Feb 25, 2022
289 views
If the average page-fault service time of 20 𝑚s, a 𝑀AT of 80 𝑛s and the probability of a page fault is 10 %. An effective access time will be: 2,000,672 𝑛s2,0...
1 votes
1 votes
1 answer
4
LavTheRawkstar asked Feb 28, 2017
13,092 views
Consider the Knapsack incidence with n=3(items) with weights {w1,w2,w3}={2,3,4} and profits are {p1,p2,p3}={1,2,5}Given the capacity is 5,{W/M = 5 } Find the optimal solu...