Love some guidance on this problem:
G is a directed acyclic graph. You want to move from vertex c to vertex z. Some edges reduce your profit and some increase your profit. How do you get from c to z while maximizing your profit. What is the time complexity?
Thanks!
Algorithm:
Try to prove why this greedy strategy works and what is its running time.
I hope that helps $\ddot\smile$