Premium Only Content
This video is only available to Rumble Premium subscribers. Subscribe to
enjoy exclusive content and ad-free viewing.
5.13 | Sample Online Data (Reservoir Sampling) | Elements of Programming Interviews in Python (EPI)
3 years ago
37
Note that at 10:44 in the video when I say, "you want to know the chance that the "last" element was chosen". Here, I mean "last" as in the "previous" element, and not the actual last element at the end of the stream/iterator.
Helpful links explaining Reservoir Sampling:
https://en.wikipedia.org/wiki/Reservoir_sampling
https://gregable.com/2007/10/reservoir-sampling.html
EPI (Elements of programming interviews in python), Question 5.13
Loading comments...
-
6:31
Matea Vasileski
3 years ago $0.01 earned8.3 | Valid Parenthesis | Elements of Programming Interviews in Python (EPI)
67 -
7:18
Matea Vasileski
3 years ago $0.08 earned5.12 | Sample Offline Data | Elements of Programming Interviews in Python (EPI)
133 -
4:53
Matea Vasileski
3 years ago $0.01 earned6.5 | Test Palindromicity | Elements of Programming Interviews in Python (EPI)
29 -
6:06
Matea Vasileski
3 years ago $0.03 earned5.8 | Computing an Alternation | Elements of Programming Interviews in Python (EPI)
74 -
8:11
Matea Vasileski
3 years ago $0.04 earned5.15 | Compute a Random Subset | Elements of Programming Interviews in Python (EPI)
80 -
8:47
Matea Vasileski
3 years ago $0.02 earned5.9 | Enumerate All Primes to N | Elements of Programming Interviews in Python (EPI)
60 -
5:13
Matea Vasileski
3 years ago5.14 | Compute a Random Permutation | Elements of Programming Interviews in Python (EPI)
136 -
16:39
Matea Vasileski
3 years ago $0.02 earned5.17 | The Sudoku Checker Problem | Elements of Programming Interviews in Python (EPI)
39 -
15:19
Matea Vasileski
3 years ago $0.03 earned5.16 | Generate Nonuniform Random Numbers | Elements of Programming Interviews in Python (EPI)
128 -
10:42
Matea Vasileski
3 years ago $0.01 earned5.11 | Compute the Next Permutation | Elements of Programming Interviews in Python (EPI)
31