Powered by OpenAIRE graph
Found an issue? Give us feedback
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/ The Computer Journalarrow_drop_down
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/
The Computer Journal
Article . 1982 . Peer-reviewed
Data sources: Crossref
DBLP
Article . 1982
Data sources: DBLP
versions View all 2 versions
addClaim

An Algorithm for Unbiased Random Sampling

Authors: Jarmo Ernvall; Olli Nevalainen;

An Algorithm for Unbiased Random Sampling

Abstract

The problem of random sampling occurs in many different contexts. For example, we may wish to study experimentally the behaviour of a new data structure for searching. Then the easiest way is to generate a set of data elements, construct the corresponding structure and then perform searching of some elements belonging (or not belonging) to the data structure. A usual approach is to use a set of data elements where the elements are randomly sampled from a universal set. If we allow multiple occurrences of elements (sampling with replacement) we have no difficulties: we repeat m times a step where each of the possible n elements is chosen with equal probability 1/n (m being the size of the final multiset sample). If we demand in contrast to the above that each element occurs at most once in the sample (random sampling without replacement) the sampling may be very timeand space-consuming. Goodman and Hedetniemi give and analyse four sampling algorithms for this case.' The most effective of those, called SELECT, needs an O(m) running time for actual sampling, O(n) running time for preprocessing and O(«) storage space. The significance of an algorithm of this kind becomes evident if we recall a result of Ref. 1: if we sample elements with replacement and accept only those which have not yet been selected, then for finding m different elements we have on average to sample n-22=n-m+i 1/^ elements. The value of this expression may be very large in comparison to m. In addition, the decision whether or not a new element is really accepted demands sorting or O(n) storage. In the following we give an algorithm using the basic idea of SELECT but consuming only O(m) storage. The running time of the algorithm is on average proportional to m and in the worst case proportional to m. In addition, a version demanding O(/w log m) time, both on average and in the worst case, is pointed out.

Related Organizations
  • BIP!
    Impact byBIP!
    selected citations
    These citations are derived from selected sources.
    This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    15
    popularity
    This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
    Top 1%
    influence
    This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    Top 0.1%
    impulse
    This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
    Average
Powered by OpenAIRE graph
Found an issue? Give us feedback
selected citations
These citations are derived from selected sources.
This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Citations provided by BIP!
popularity
This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
BIP!Popularity provided by BIP!
influence
This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Influence provided by BIP!
impulse
This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
BIP!Impulse provided by BIP!
15
Top 1%
Top 0.1%
Average
bronze
Related to Research communities