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)
								4 years ago							
						
														38						
								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...				
			
		- 	
				 4:34 4:34Matea Vasileski4 years ago#1 Tip for Coding Interviews33
- 	
				 7:18 7:18Matea Vasileski4 years ago $0.08 earned5.12 | Sample Offline Data | Elements of Programming Interviews in Python (EPI)157
- 	
				 4:53 4:53Matea Vasileski4 years ago $0.01 earned6.5 | Test Palindromicity | Elements of Programming Interviews in Python (EPI)30
- 	
				 6:06 6:06Matea Vasileski4 years ago $0.03 earned5.8 | Computing an Alternation | Elements of Programming Interviews in Python (EPI)74
- 	
				 8:11 8:11Matea Vasileski4 years ago $0.04 earned5.15 | Compute a Random Subset | Elements of Programming Interviews in Python (EPI)92
- 	
				 8:47 8:47Matea Vasileski4 years ago $0.02 earned5.9 | Enumerate All Primes to N | Elements of Programming Interviews in Python (EPI)61
- 	
				 5:13 5:13Matea Vasileski4 years ago5.14 | Compute a Random Permutation | Elements of Programming Interviews in Python (EPI)157
- 	
				 16:39 16:39Matea Vasileski4 years ago $0.02 earned5.17 | The Sudoku Checker Problem | Elements of Programming Interviews in Python (EPI)44
- 	
				 15:19 15:19Matea Vasileski4 years ago $0.03 earned5.16 | Generate Nonuniform Random Numbers | Elements of Programming Interviews in Python (EPI)135
- 	
				 10:42 10:42Matea Vasileski4 years ago $0.01 earned5.11 | Compute the Next Permutation | Elements of Programming Interviews in Python (EPI)33