筛法在加密系统里如何生成候选质数
厘清确定性 Eratosthenes/分段筛与概率 Miller–Rabin 测试在小候选池与强素数生成中的分工,理解真实加密库在密钥生成阶段付出的真实代价,以及为何筛法不会消失。
Explore by topic
Mathematics, probability, statistics, formal logic, and algorithmic principles.
厘清确定性 Eratosthenes/分段筛与概率 Miller–Rabin 测试在小候选池与强素数生成中的分工,理解真实加密库在密钥生成阶段付出的真实代价,以及为何筛法不会消失。
逐层扩展按路径长度递增的顺序发现路径,因此第一次命中终点时,所走路径长度即为全局最短。
导航用从起点逐层向外扩展的贪心搜索,只检查每一个路口最优的一次到达方式,因此几秒内即可锁定全城最短路线。
Entropy is the tendency of systems to move toward their most probable arrangements, and this single statistical rule governs mixing, information loss, and the arrow of time itself.
Interpolation forces the network to pass exactly through every training point, producing high-frequency oscillations between them; approximation sacrifices exact fit for a smoother function that captures the underlying trend and behaves reasonably on unseen inputs.
Dimension mismatch between queries and keys distorts the attention score distribution — specifically inflating its variance — and the sqrt(d_k) normalization in scaled dot-product attention exists precisely to keep that distribution stable regardless of dimension.
A positive screening result signals that further testing is warranted, while a positive diagnostic result signals that the condition is sufficiently likely to guide treatment decisions.
The nearest‑centroid rule defines cluster membership by which centroid is closest, so cluster edges are the straight perpendicular bisectors between centroids — independent of the actual spread, shape, or density of the points.
Big-O describes how running time grows with input size, but it hides three things that can dominate real performance: the multiplicative constant, the cost of each primitive operation, and how the data interacts with memory hierarchy. Algorithm choice should weight all three, not just the asymptotic class.
How keys are converted into numeric values, how those values are squeezed into a fixed array range with modulo arithmetic, and why collisions are an expected consequence.
A network that can fit unseen noise isn't memorizing exceptions — it's because high-capacity models can interpolate the training data exactly, which forces the learned function to be smooth enough to generalize on real patterns.
Positive medical tests mean healthy because screening tests are designed to detect a rare, specific condition — so a normal result is flagged as 'positive' for normality, and the meaning of positive is inverted by the test's purpose and the population it screens.
Attention compares a query vector to a bank of key vectors via a dot product, and the resulting scores weight how much of each value vector is read — a similarity operation over learned representations, not over surface words.
A cluster's edge is the set of points whose nearest centroid switches, and the centroid itself is the mean of its assigned points.
Big-O ignores constants because it describes how runtime scales with input size, and any fixed multiplier becomes irrelevant once the input grows.
Hash table lookup is constant time because the hash function maps a key directly to a slot index, turning a search across n entries into a single computed jump — provided the table is sized and the hash is uniform enough that collisions stay rare and amortized constant.
解释筛法通过预先标记倍数来实现批量淘汰的机制,并说明它在候选质数生成中相对于试除法的效率优势。
理解勾股数 (m² − n², 2mn, m² + n²) 的参数化如何为费马无穷递降法提供起点,并展示由此推出 x⁴ + y⁴ = z² 无正整数解的逻辑链条。
The Cauchy distribution is preserved by convolution because it is a stable distribution with stability parameter α = 1; its heavy (1/x²) tails ensure that extreme observations keep reappearing, so repeated averaging never concentrates probability around the mean.
Gradient noise and parameter noise shape optimization through fundamentally different mechanisms: gradient noise produces an implicit regularization that scales with learning rate, while parameter noise produces an explicit perturbation that scales with weight magnitude.
Repeated convolution of any probability distribution with itself converges to a Gaussian, and this happens because convolution is the operation of adding independent random variables, whose sums the Central Limit Theorem forces toward the normal distribution.
Averages of skewed data become normal because each sample mean is a sum of independent random pulls that symmetrizes through aggregation, with the spread shrinking predictably as 1/√n.
The Central Limit Theorem requires finite variance and independent (or weakly dependent) summands; heavy tails push variance to infinity, and correlations let individual shocks persist across the average.
Repeated self-convergence toward a Gaussian, because each convolution sums independent copies and the fixed point of this operation is the bell curve.