Algorithms for generating small random samples
生成小规模随机样本的算法
Vincent A. Cicirello
DOI: 10.1002/spe.3379
期刊: Software Practice and Experience
摘要
Abstract We present algorithms for generating small random samples without replacement. We consider two cases. We present an algorithm for sampling a pair of distinct integers, and an algorithm for sampling a triple of distinct integers. The worst‐case runtime of both algorithms is constant, while the worst‐case runtimes of common algorithms for the general case of sampling elements from a set of increase with . Java implementations of both algorithms are included in the open source library .
文章解读
研飞AI智能解析 PDF,回答研究者问题,助你秒懂论文
免费下载期刊信息
期刊:
ISSN: 0038-0644
国际分区
类目 | 分区 |
COMPUTER SCIENCE, SOFTWARE ENGINEERING | 2 |
国内分区
类目 | 分区 |
计算机科学 | 4 |
计算机科学, 计算机软件工程 | 4 |