THIS SITE HAS BEEN DEDICATED TO UCSD MATH 188, WINTER 2000 DESIGN AND ALGORITHMS STUDENTS: Kenny Ton: [email protected]
and
Hung Bui: [email protected]
| Algorithm | Strategy | Advantage | Disadvantage | Complexity |
| Insertion | adjacent key comparison | order optimal quick for short lists quick on long lists if.. good for on-line sorting in-place stable | W(n) A(n) | B(n) = n-1 W(n) = n2 A(n) = n2 |
| ShellSort | comparison-based internal memory non-adjacent | . | analysis difficult | not known in general for increments of .... W(n) = O (?) |
| MergeSort | divide & conquer comparison-based internal | order optimal | . | B(n) = A(n) = W(n) = n log n |
| QuickSort | divide & conquer comparison-based internal | good A(n) | bad W(n) | B(n) = A(n) = n log n W(n) = n2 |
| TreeSort | comparison-based internal | good A(n) | bad W(n) | B(n) = A(n) = n log n W(n) = n2 |
| Selection | comparison internal | . | inefficient | B(n) = A(n) = W(n) = |
| HeapSort | comparison internal for priority queue | order optimal | same whether items distinct or not | B(n) = A(n) = W(n) = insert W(n) = log n adjust W(n) =log n - log i make W(n) = log n |
| BingoSort | comparison-based internal m distinct items | efficient for lists with repeats better than Heapsort when m < log n | . | W(n) = A(n) = mn B(n) = |
| RadixSort | internal depends on items | . | . | for string len k, W(n) = A(n) = B(n) = |
| Multimerge Sort | external order optimal | . | . | W(n) = |
| Multimerge SortQ | external internal priority queue | order optimal | . | W(n) = |
Dijkstra's Algorithm Animation & All Pairs Shortest Paths
Explaination
ALL PAIRS SHORTEST PATH
COMPARISION WITH DIJISTRA'S ALGORITHM
References and credits
Please email any comments to:
Kenny Ton: [email protected]
or
Hung Bui: [email protected]