Fundamentals of Algorithms
Question #46
Read the question, compare the options, and review the correct answer below.
CS502 · Final-term only#46
After partitioning array in Quick sort, pivot is placed in a position such that
- A
? Values smaller than pivot are on left and larger than pivot are on right (Page 48)
- B
? Values larger than pivot are on left and smaller than pivot are on right
- C
? Pivot is the first element of array
- D
? Pivot is the last element of array
Show correct answer
Correct answer: A. ? Values smaller than pivot are on left and larger than pivot are on right (Page 48)
Check community answers against your course notes.