Which is the worst method of choosing a pivot element?
Posted: Wed Jul 13, 2022 6:15 pm
a) first element as pivot
b) last element as pivot
c) median-of-three partitioning
d) random element as pivot
b) last element as pivot
c) median-of-three partitioning
d) random element as pivot