Picture of me as Student
dADS2
dBerLog
dDist
dOpSys
dRegAut
dSoftArk
dSik
IntMatMod
LinAlg
MatMod
AiBTaS
AiBS
dKS
DB2
VM
StrAlg
SV
P2PN
Introduction to Algorithms 2. edition When I went to the exam, which was a written one, I had created an overview of the different algorithms. This includes running time, pages in the book Introduction to Algorithms, Second edition (Image on the right) and also what is required for the algorithm to work. I think it was usefull since I did not have to look in the book where the algorithm was described when it was mentioned in the paper I had to solve.

Currently missing is suffixtrees and suffixarrays. If you have the times for these algorithms, please let me know.
Algorithm Pages Running time
Longest common subsequence353-355O(mn)
Optimal Binary Search Tree356-362Θ(n3)
Greedy-Activity-Selector376-378if already sorted Θ(n)
Huffman385-391O(nlgn)
BFS
Directed and undirected graphs
531-538O(V+E)
DFS
Directed and undirected graphs
540-547Θ(V+E)
Topological-sort
Undirected graphs
549-551Θ(V+E)
Strongly-Connected-Components
Undirected graphs
552-557Θ(V+E)
Minimum spanning trees
Kruskal568-570O(ElgV)
Prim570-573
Binary heapFibonacci heap
O(ElgV)O(E+VlgV)
Single source shortest paths
Bellman-Ford
Weighed directed with negative weights but no negative cycles
588-591O(VE)
DAG-Shortest Path
Directed Accyclic Graph
592-595Θ(V+E)
Dijkstra
Weighed directed with no negative weights
595-599
ArrayBinary heapFibonacci heap
O(V2)O(ElgV)O(E+VlgV)
All pairs shortest paths
(directed graphs with negative weigts but no negative cycles)
Floyd Warshall629-632Θ(V3)
Transitive-closure632-634Θ(V3)
Maximum flow
(directed graphs)
Ford Fulkerson651-660O(V|f*|) (|f*| = maximum flow)
Edmond-Karp660-663O(VE2)
Matrix multiplication
Strassen
On a n×n matrix
735-741O(n2.81)
There is a O(n2.376) See p. 741
String pattern matching
Algorithm Pages Preproccesing Matching
Naive909-9100O((n-m+1)m)
Rabin-Karp911-915Θ(m)O((n-m+1)m)
Finite automaton916-922O(m|Σ|)Θ(n)
Knuth-Morris-Pratt923-930Θ(m)Θ(n)

Please note that Finite automaton was not a part of the curriculum when I took the course.
Last modified 10. October 2016 foens Dont spam me @cs.au.dk Valid XHTML 1.1 Valid CSS