Dijkstra

Description

Computer Science (Data structures and algorithms) Note on Dijkstra, created by Jani Issakainen on 19/12/2016.
Jani Issakainen
Note by Jani Issakainen, updated more than 1 year ago
Jani Issakainen
Created by Jani Issakainen over 7 years ago
8
0

Resource summary

Page 1

NutshellSingle source algorithm Finds shortest paths to every other node on a weighted graph in O ( (|E|+|V|) * log(|V|)) Heap-del-min is called V times and its time complexity is log V. Heap-decrease-key kutsutaan jokaiselle kaarelle, E * log(V). Alustus O(E+V)

Adj-lists (building Graph) Single source initialization (all added to heaps, distances to inf, path[v]=NIL Call remove min, go through all the adj list vertices, RELAX them. repeat 3 until heap is empty.

Show full summary Hide full summary

Similar

Computing Hardware - CPU and Memory
ollietablet123
SFDC App Builder 2
Parker Webb-Mitchell
Data Types
Jacob Sedore
Intake7 BIM L1
Stanley Chia
Software Processes
Nurul Aiman Abdu
Design Patterns
Erica Solum
CCNA Answers – CCNA Exam
Abdul Demir
Abstraction
Shannon Anderson-Rush
Spyware
Sam2
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Data Analytics
anelvr