Select k-smallest item in an array A in nearly 2n time using LAZY-SELECT. Also implemented naive sorting & linear select algorithm.
-
Updated
May 7, 2019 - Python
Select k-smallest item in an array A in nearly 2n time using LAZY-SELECT. Also implemented naive sorting & linear select algorithm.
💤 Lazy selection algorithm, from Randomized Algorithms (Motwani, Raghavan) p.47
Add a description, image, and links to the lazy-selection topic page so that developers can more easily learn about it.
To associate your repository with the lazy-selection topic, visit your repo's landing page and select "manage topics."