#️⃣ Hash Collision Probability
Estimate birthday-paradox collision probability from hash-space bits and stored item count; risk rises sharply as n approaches the square root of 2^bits.
📐 計算公式與說明
編碼空間與碰撞機率:編碼空間大小 = 2^bits;近似碰撞機率 P = (1 − exp(−n(n−1) ÷ (2×2^bits))) × 100(%,生日悖論近似,n 為取數個數);安全閾值 n = √(2×2^bits)。校驗:無強校驗,空/非法值按 0 兜底。判據:無固定分級,位寬每 +1 編碼空間翻倍,同規模取數下碰撞機率顯著下降。
當 n 接近 √2^bits 時碰撞機率顯著上升。