24.04.2015 Views

Knapsack problem, Huffman Code, Single Source Shortest Path ...

Knapsack problem, Huffman Code, Single Source Shortest Path ...

Knapsack problem, Huffman Code, Single Source Shortest Path ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 4: The Greedy Method<br />

3. Having selected such u from (2) above, and generated<br />

the shortest path v 0 to u, u becomes the member of S.<br />

length of this path is DIST(u) + c(u,w).<br />

The algorithms is known as Dijkstra’s Algorithm<br />

28

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!