SU KOAA / LEARN
Back to Algorithm StudioAlgorithm knowledge check
Ten short questions on sorting, searching, graphs, trees and recursion. Answers are explained after submission.
Answered0/10
Attempts on this device0
Best score0/10
Complexity quick reference
Worst-case bounds unless a note states otherwise. V = vertices; E = edges.
| Algorithm | Time | Extra space | Why it matters |
|---|---|---|---|
| Bubble Sort | O(n²) | O(1) | In-place; optimized early-exit best case O(n). |
| Merge Sort | O(n log n) | O(n) | Predictable time; auxiliary merge storage. |
| Quick Sort | O(n²) worst | O(n) worst stack | Average O(n log n); pivot strategy matters. |
| Binary Search | O(log n) | O(1) iterative | Requires sorted input. |
| BFS / DFS | O(V + E) | O(V) | Traversal of vertices and edges. |
| Dijkstra (simple) | O(V² + E) | O(V + E) | This complexity describes a linear-minimum selection implementation. |
| BST (unbalanced) | O(n) worst | O(n) worst | Balanced trees typically offer O(log n) search. |
| Min-heap insert/remove | O(log n) | O(1) auxiliary | Finding minimum is O(1). |
Progress is stored only in this browser's local storage. It is not synced to your SUKOAA account or Supabase.