Dijkstra

Beschreibung

Computer Science (Data structures and algorithms) Notiz am Dijkstra, erstellt von Jani Issakainen am 19/12/2016.
Jani Issakainen
Notiz von Jani Issakainen, aktualisiert more than 1 year ago
Jani Issakainen
Erstellt von Jani Issakainen vor etwa 8 Jahre
9
0

Zusammenfassung der Ressource

Seite 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.

Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

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