Order Statistics
Class Materialβ
- Slides can be found here.
Geometric Seriesβ
A geometric series is given by:
This series converges if the absolute value of the common ratio (|r| < 1). The sum of the infinite series is:
Some very common applications
-
.
-
-
See the image below for visual intuition. The total area of the square is 1.
This proof explains why
runs in time.
Need more proof? Check out this Wikipedia article.
Linear Time Median Finding (Median of Medians)β
Magic
- This algorithm can also be used to find any kth smallest element in an array!
- It is a divide and conquer algorithm.
Check out this article to understand how this algo works:
Median of Medians runs in time, while QuickSelect runs in expected time.