CS3 Runtimes

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/12

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:43 AM on 5/13/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

13 Terms

1
New cards

What is the big-Oh run time of Merge Sort on n items?

O(n log n)

2
New cards

What is the big-Oh run time of Heap Sort on n items?

O(n log n)

3
New cards

What is the worst case big-Oh run time to insert 1 item into a min-heap?

O(log n)

4
New cards

What is the big-Omega lower bound for comparison based sorting of n items?

Ω(n log n)

5
New cards

What is the worst case big-Oh run time to insert 1 item into an AVL-tree that contains n items?

O(log n)

6
New cards

What is the worst case big-Oh run time of binary search on an n item sorted list?

O(log n)

7
New cards

What is the worst case big-Oh run time to remove the minimum value from a min-heap?

O(log n)

8
New cards

What is the run time of breadth-first search (in terms of |V| and |E|)?

O(|V| + |E|)

9
New cards

What is the run time of Dijkstra’s algorithm (in terms of |V| and |E|) assuming a min-heap based implementation?

O((|V| + |E|) log |V|)

10
New cards

What is the run time of Dijkstra’s algorithm (in terms of |V| and |E|) assuming a Fibonacci heap based implementation?

O(|E| + |V| log |V|)

11
New cards

What is the run time of the Bellman-Ford single-source shortest path algorithm (in terms of |V| and |E|)?

O(|V| · |E|)

12
New cards

What is the run time of the Floyd-Warshall “all-pairs” shortest path algorithm (The one that uses dynamic programming)?

O(|V|³)

13
New cards

What is the run time of the Edmonds-Karp maximum flow algorithm?

O(|V| · |E|²)