Suppose you have a collection, S, of n distinct items and you wish to select a random

Question:

Suppose you have a collection, S, of n distinct items and you wish to select a random sample of these items of size exactly [n1/2]. Describe an efficient method for selecting such a sample so that each element in S has an equal probability of being included in the sample.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Algorithm Design And Applications

ISBN: 9781118335918

1st Edition

Authors: Michael T. Goodrich, Roberto Tamassia

Question Posted: