Q. Which is the worst method of choosing a pivot element? (Solved)
1. first element as pivot
2. last element as pivot
3. median-of-three partitioning
4. random element as pivot
- a. first element as pivot
1. first element as pivot
2. last element as pivot
3. median-of-three partitioning
4. random element as pivot