Jump to content

Quick Sort Picking a pivot? Average of all the keys

- - - - -

  • Please log in to reply
1 reply to this topic

#1
ductiletoaster

ductiletoaster

    Newbie

  • Members
  • PipPip
  • 15 posts
Suppose that in Quicksort the pivot is the average of all keys.(Assuming the keys are numeric) Will this guarantee balance partitioning and therefore Θ(nlgn) complexity? Please explain.

Thanks

#2
ductiletoaster

ductiletoaster

    Newbie

  • Members
  • PipPip
  • 15 posts
Anyone?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users