跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:1704.04538 · v3

A Simple Randomized Estimator for Harmonic Numbers and Logarithms

首次提交 2017-04-15 04:38
版本更新 2026-11-01 03:58
雷达观测 2026-11-04 23:43
arXiv ↗PDF ↗

摘要

Scanning a list of $x$ distinct numbers in uniformly random order for its maximum replaces the running maximum $H_x$ times on average, where $H_x$ is the $x$th harmonic number. Run backwards, this gives an estimator: the replacement count of a random list is an unbiased Monte Carlo estimate of $H_x$, and since $H_x = \ln x + γ+ O(1/x)$, a corrected estimate of $\ln x$. We give the exact variance of the count, an error decomposition with sample-size rules, and an exact sampler of the count using $H_x$ integer draws on average instead of a scan of length $x$. Coupling two counts estimates $\ln(a/b)$ without $γ$, and a binary range reduction then bounds the standard error by $\sqrt{\ln 2/n}$ for every $x$ at fewer than $1.7$ draws per repetition on average. A classical deterministic series on the same reduction reaches the rounding floor with sixteen terms in the reported experiments, quantifying the gap between the two approaches. The purpose is pedagogical: the analysis of an algorithm becomes an estimator of the quantity that analysis produces, with exact variances, finite-sample error bounds, reproducible experiments, and machine-checked algorithm contracts and moment identities. The ingredients are classical; the contribution is their assembly.

作者备注:v3: substantially revised and extended third version; title changed from "A Simple Randomized Algorithm to Compute Harmonic Numbers and Logarithms". 22 pages, 4 figures, 7 tables. Code, data, and Dafny proofs at https://github.com/alidasdan/randomized-harmonic-logarithms

AI 论文解读

基于摘要 · 非全文审阅

此版本尚未生成 AI 解读。解读由后台任务生成并按论文版本保存,登录后共享已有结果。

版本差异

目前只观测到一个版本,无法比较变化。之后收录新版本时,会在这里对照标题、作者、分类和摘要。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v3 · 2026-11-01 03:58 · 最新观测版本

A Simple Randomized Estimator for Harmonic Numbers and Logarithms

Scanning a list of $x$ distinct numbers in uniformly random order for its maximum replaces the running maximum $H_x$ times on average, where $H_x$ is the $x$th harmonic number. Run backwards, this gives an estimator: the replacement count of a random list is an unbiased Monte Carlo estimate of $H_x$, and since $H_x = \ln x + γ+ O(1/x)$, a corrected estimate of $\ln x$. We give the exact variance of the count, an error decomposition with sample-size rules, and an exact sampler of the count using $H_x$ integer draws on average instead of a scan of length $x$. Coupling two counts estimates $\ln(a/b)$ without $γ$, and a binary range reduction then bounds the standard error by $\sqrt{\ln 2/n}$ for every $x$ at fewer than $1.7$ draws per repetition on average. A classical deterministic series on the same reduction reaches the rounding floor with sixteen terms in the reported experiments, quantifying the gap between the two approaches. The purpose is pedagogical: the analysis of an algorithm becomes an estimator of the quantity that analysis produces, with exact variances, finite-sample error bounds, reproducible experiments, and machine-checked algorithm contracts and moment identities. The ingredients are classical; the contribution is their assembly.

查看此版本解读 →查看此版本原文 ↗