知识卡片
米勒拉宾误判上界随轮数减半
奇合数至少一半底数是合数证人。
独立随机抽取s轮都未命中证人的概率至多2^{−s};素数不会被误判为合数。
因此“通过测试”是带误差界的概率结论,合数证据则是确定结论。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第31章 数论算法 · 查看原书依据
Theorem 31.40 For any odd integer n > 2 and positive integer s, the probability that MILLER-RABIN(n, s) errs is at most 2–s. Proof By Theorem 31.39, if n is composite, then each execution of the for loop of lines 1–4 of MILLER-RABIN has a probability of at least 1/2 of discovering a witness to the compositeness of n. MILLER-RABIN makes an error only if it is so unlucky as to miss discovering a witness to the compositeness of n on each of the s
参考来源
- 位置:《算法导论(第4版)》第31章《数论算法》(OEBPS/chapter031.xhtml,文本字符[90000,95000))。
- 结论依据:第31章相应定理、习题定义或章末注释;相关图式与来源段落已核对。
- 原始内容:Theorem 31.40 For any odd integer n > 2 and positive integer s , the probability that M ILLER -R ABIN ( n , s ) errs is at most 2 – s . Proof By Theorem 31.39, if n is composite, then each execution of the for loop of lines 1–4 of M ILLER -R ABIN has a probability of at least 1/2 of discovering a witness to the compositeness of n . M ILLER -R ABIN makes an error only if it is so unlucky as to miss discovering a witness to the compositeness of n on each of the s