Tags: quickselect
True or False: quickselect
requires the input array to be sorted in order to function correctly.
False.
Tags: quickselect, loop invariants
Recall the partition operation from quickselect
. Which of the following arrays could have been partitioned at least once? Select all that apply.
The second, third, and last all should be selected.
Tags: quickselect
True or False: in order to guarantee that its output is correct, quickselect
must be called on a sorted list.
False.