The key steps for Bubble Sort are:
The key steps for Insertion Sort are:
The key steps for Merge Sort are:
Merge function
The key steps for Quick Sort are:
lt) and greater-than-equal (gte) subarrayslt; if element greater than or equal pivot, append to gte.lt and gtelt, gte, and pivot into a single arrayWhat is the time complexity for an Insertion Sort?
O(n²)
What is the time complexity for a Quick Sort?
O(n log n)
Under what circumstances is the quicksort least efficient?
When the provided list is nearly sorted or already sorted (pivot is not median value).
What does it mean when a sorting algorithm is said to be ‘stable’?
A stable sorting algorithm ensures that elements with identical sorting properties still maintain their original order.
What is the key determining factor that affects the execution time of a sort algorithm?
The size of the given array.
What is the time complexity for a Bubble Sort?
O(n²)
What is the time complexity for a Merge Sort?
O(n log n)
memory space (in-place vs out-of-place)
linear vs recursion
while recursive function by nature consists many self contained tasks which can be divided among many threads
bubble sort optimisation
insertion sort optimisation
optimisation for merge sort
optimisation of quicksort
median item as pivot