You are given a dynamic stream of numbers and numbers are coming one
by one. At a time you can store at max k numbers(coz you have only
that much memory available). Task is that we have to select the random
subset of size k from the numbers we have got so far with equal
probability.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to