1/16
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Worst case running time of selection sort?
O(n²)
Best case running time of selection sort?
O(n²)
Worst case running time of insertion sort?
O(n²)
Best case running time of insertion sort?
O(n)
Worst case running time of mergesort?
O(nlogn)
Best case running time of mergesort?
O(nlogn)
Worst case running time of quicksort?
O(n²)
Best case running time of quicksort?
O(nlogn)
Worst case running time of heapsort?
O(nlogn)
Best case running time of heapsort?
O(n)
Quick-find
Find: O(1) Union: O(n)
Quick-Union
Find: O(n) Union: O(n)
weighted quick union with path compression
Find: O(logn) Union: O(logn)
Selection and quick sort are ____.
unstable
Selection, insertion, and quick sort are all ___.
inplace
Depth-first Search
O(V + E)
In-order traversal
Left - root - right