Paraphernalia
AarXiv20 May 2024

Algorithms for Generating Small Random Samples

Vincent Cicirello

Abstract

This report presents algorithms for generating small random samples without replacement. It considers two cases. It presents an algorithm for sampling a pair of distinct integers, and an algorithm for sampling a triple of distinct integers. The worstcase runtime of both algorithms is constant, while the worstcase runtime of common algorithms for the general case of sampling k elements from a set of n are linear in n. Java implementations of both algorithms are included in the open source library ρµ.

§ The Valyu brief

Reading the full paper and taking notes. This takes a few seconds…

§ Ask this paper

Ask a question about this paper

Valyu reads the full text and answers from what the paper actually says.

Q.

Searching the other archives…

Algorithms for Generating Small Random Samples · Paraphernalia