1

In the linear time selection algorithm which finds the ith smallest element in O(n) time our first step is to divide our unordered set into subsets of 5. Why is the size of the subsets chosen to be 5 and how would the algorithm be affected if I chose a different number. Nothing online describes why this number is the chosen subset size..

D.W.
  • 167,959
  • 22
  • 232
  • 500
Javant
  • 141
  • 4

0 Answers0