Lecture 6 Order Statistics

Given n elements in array, find kth smallest element (element of rank k)










Worst-case linear time order statistics --by Blum, Floyd, Pratt, Rivest, Tarjan

--idea: generate good pivot recursively.




Not so hot, because the constant is pretty big.













發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章