全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Monotone predicate, dichotomy on the answer?

又称: monotone predicate · dichotomy on the answer

Definition 21.7 University Computer Science — Year 1 · 第 21 章 — Divide and Conquer

A predicate PP on the integers is monotone if P(x)P(x) implies P(x+1)P(x + 1): false up to some point, true after it. A dichotomy on the answer finds the smallest xx in [lo,hi][lo, hi] with P(x)P(x), knowing P(hi)P(hi), by binary search on xx, with ⌈log⁡2(hi−lo+1)⌉\lceil \log_2 (hi - lo + 1) \rceil evaluations of PP.

在原文中阅读 →