CISC 365 Lecture Notes - Lecture 2: Brie, Fibonacci Heap

43 views2 pages

Document Summary

To everyone"s amusement, we spent much of the lecture time locked in combat with the av equipment. We did manage to trace through the execution of dijkstra"s algorithm on a small example. We brie y discussed the computational complexity of the algorithm. What follows here is a more in-depth analysis: Assume the graph has n vertices and m edges. Select the vertex in c with the least b() value. Examine all neighbours of the selected vertex potentially performing some update work on each one. If c is stored in an array, choosing the vertex with the least b() value takes. Alternatively, if c is stored in a min-heap, choosing the vertex with the least b(v) value and repairing the heap takes o(log n) time. If c is stored in an array, the update work for each neighbour takes o(1) time.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents