Randomized Algorithms Lecture 3: “Occupancy, Moments and deviations, Randomized selection ”
Sotiris Nikoletseas Associate Professor
CEID - ETY Course 2013 - 2014
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 1 / 34
Randomized Algorithms Lecture 3: Occupancy, Moments and deviations, - - PowerPoint PPT Presentation
Randomized Algorithms Lecture 3: Occupancy, Moments and deviations, Randomized selection Sotiris Nikoletseas Associate Professor CEID - ETY Course 2013 - 2014 Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 1 / 34
1 n
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 2 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 3 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 4 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 5 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 6 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 7 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 8 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 9 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 10 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 11 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 12 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 13 / 34
k∗ ≤ 2
3 ln n ln ln n
k∗ ≤ 2 ⇔
3 ln n ln ln n
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 14 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 15 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 16 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 17 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 18 / 34
ln ln n ≥
ln ln n
ln ln n =
ln ln n =
Randomized Algorithms - Lecture 3 19 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 20 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 21 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 22 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 23 / 34
n
n = e− ∑m i=2 i−1 n = e− 1 n
i=1 i =
2n
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 24 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 25 / 34
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 26 / 34
3 4 elements from S.
4 .
3 4 } .
1 4 , n − n 1 4 ], let P = {y ∈ S : a ≤ y ≤ b}.
3 4 + 2. If not, repeat
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 27 / 34
3 4 log n) time (which is o(n)).
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 28 / 34
3 4 log n) = o(n) time.
1 4 and k > n − n 1 4 . Their analysis is similar. Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 29 / 34
4 ).
4 − √n) of the samples in
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 30 / 34
3 4 k
4 and
3 4 k
3 4
X
3 4
4 )
4 )
4 − √n
4 ) Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 31 / 34
4 )
4 ) + O(n− 1 4 ) = O(n− 1 4 )
Randomized Algorithms - Lecture 3 32 / 34
3 4 + 2
4 )
3 4 } and
3 4 , n}
3 4 + 2
3 4 , kh = k + 2n 3 4
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 33 / 34
4 ) performing 2n + o(n) comparisons.
4 ) (i.e., it
3 4 log n) = o(n)
Sotiris Nikoletseas, Associate Professor Randomized Algorithms - Lecture 3 34 / 34