1/34
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Insertion Sort

LomutoPartition

Hoare partition

Quicksort
Lomuto:QuickSort(A, p, r - 1)QuickSort(A, r + 1, q)
Hoare:QuickSort(A, p, r)QuickSort(A, r + 1, q)
So your statement is correct: for Hoare, the first recursive call uses p, r instead of p, r - 1.
The reason is:
in Lomuto, r is the pivot’s final position, so exclude it
in Hoare, r is only the split boundary, so include it in the left side
One warning: this is true only if your Partition is actually a Hoare partition. If you use Hoare partition but still recurse with r - 1, you can skip elements or break the algorithm

Randomized Lomuto Partition

Evolved Bubble Sort

Merge Sort

2 Way Merge Sort

Operations on Containers Time Complexity

Time Complexity
Basically if you end up with small o that directly implies big O since small o is tighter and the way that you would write it is F(n) is an element of o(g(n))

Asymptotic Analysis

Time Complexity Graph

Masters Theorem

Sorting Algorithms Complexities

Max heapify

Build Heap Max

Heap Sort

Heap Maximum

Extract-Max

Increase-Key(S, x, k)

Insert - Key

Counting Sort

Summary of all Sorting

Bucket Sort

Radix Sort - Passing for the Counting Sort

Counting Sort in Radix Sort implementation

Dynamic Programming The Jumping Problem

Rod Cutting Problem

Decoding Problem

Coin Change Problem

longest increasing subsequence

Counting Sort Preprocessing

Greedy Template

Maximum points Greedy

Min points Greedy
