-3

Given a directed acyclic graph G = (V,E) and two distinguished vertices s and t. Both the edges and vertices are assigned real-valued weights. The weight of a path is defined as the sum of all the edges and vertices on the path. The problem is to find a shortest weighted simple path from s to t.

(a) Design a dynamic programming algorithm and briefly describe it.

(b) Design a greedy algorithm and briefly describe it.

(c) Provide upper and lower bounds of one of your algorithms as tight as possible.

How do I do this? Can Dijkstra be used?

Darth Hunterix
  • 1,484
  • 5
  • 27
  • 31
user3566629
  • 35
  • 1
  • 3
  • 2
    This really sounds like a homework problem... What have you done to try to solve the problem, and where are you getting stuck? – Steven V Nov 06 '14 at 01:18

1 Answers1

0

I think for greedy algorithm Dijkstra's can be used. I dont know about the rest, sorry mate.