Test your advanced understanding of core sorting algorithms, their complexities, and underlying data structures with these thoughtfully designed questions.
Given an array of 6 integers in reverse order, how many total passes (outer loop iterations) are required in the worst-case scenario for Bubble Sort to guarantee the array is sorted?
If you run Selection Sort on an array of n elements, how many times in total will the swap operation be executed in the worst-case scenario?
Given a nearly sorted array where each element is at most k positions away from its final sorted location, what is the best-case time complexity for Insertion Sort?
What is the minimum additional space complexity (not total, just auxiliary) required by the standard Merge Sort algorithm when sorting an array of n elements?
In the standard Lomuto Quick Sort partition algorithm, what happens if all elements are equal to the pivot in a subarray?
In Heap Sort, how many times is the root element swapped with the last element within the main loop for an array of n elements?
Given an array of n positive integers where the maximum value is k, what is the space complexity of Counting Sort in terms of n and k?
Which of the following listed sorting algorithms is inherently stable in its standard implementation?
Which sorting algorithm from the following relies on the actual values of the elements rather than their pairwise comparisons to sort an array of integers?
For which of the following sorting algorithms does the best-case time complexity match the worst-case time complexity for all input data?