e01.org

Predecessor problem

In computer science, the predecessor problem involves maintaining a set of items to, given an element, efficiently query which element precedes or succeeds that element in an order. Data structures used to solve the problem include balanced binary search trees, van Emde Boas trees, and fusion trees. In the static predecessor problem, the set of elements does not change, but in the dynamic predecessor problem, insertions into and deletions from the set are allowed. The predecessor problem is a simple case of the nearest neighbor problem, and data structures that solve it have applications in problems like integer sorting.

In computer science, the predecessor problem involves maintaining a set of items to, given an element, efficiently query which element precedes or succeeds that element in an order. Data structures used to solve the problem include balanced binary search trees, van Emde Boas trees, and fusion trees. In the static predecessor problem, the set of elements does not change, but in the dynamic predecessor problem, insertions into and deletions from the set are allowed. The predecessor problem is a simple case of the nearest neighbor problem, and data structures that solve it have applications in problems like integer sorting. O(1) \min \left\{ \begin{array}{l} \log_{w} n \\ \lg \frac{\ell - \lg n}{a} \\ \frac{\lg \frac{\ell}{a}}{\lg \left( \frac{a}{\lg n} \,\cdot\, \lg \frac{\ell}{a} \right)} \\ \frac{\lg \frac{\ell}{a}}{\lg \left( \lg \frac{\ell}{a} \right/\left. \lg\frac{\lg n}{a} \right)} \end{array} \right. where the RAM has word length w , the set contains n integers of \ell bits each and is represented in the RAM using S words of space, and defining a = \lg \frac{S}{n} + \lg w . In the case where w = \ell = \gamma \lg n for \gamma > 1 and S = n \cdot \lg^{O(1)} n , the optimal search time is \Theta(\lg \ell) and the van Emde Boas tree achieves this bound.

References

  1. ^ Andersson, Arne; Thorup, Mikkel (2007), "Dynamic ordered sets with exponential search trees", Journal of the ACM , 54 (3): A13, arXiv : cs/0210006 , doi : 10.1145/1236457.1236460 , MR 2314255 , S2CID 8175703 . Wikipedia revision 1252903150, retrieved 2026-11-18 · 1794956400.0
  2. ^ Raman, Rajeev (1996), "Priority queues: small, monotone and trans-dichotomous", Fourth Annual European Symposium on Algorithms (ESA '96), Barcelona, Spain, September 25–27, 1996 , Lecture Notes in Computer Science, vol. 1136, Berlin: Springer-Verlag, pp. 121– 137, doi : 10.1007/3-540-61680-2_51 , ISBN 978-3-540-61680-1 , MR 1469229 . Wikipedia revision 1252903150, retrieved 2026-11-18 · 1794956400.0
  3. ^ a b c Beame, Paul; Fich, Faith (August 2002). "Optimal Bounds for the Predecessor Problem and Related Problems" . Journal of Computer and System Sciences . 65 (1): 38– 72. doi : 10.1006/jcss.2002.1822 . S2CID 1991980 . Wikipedia revision 1252903150, retrieved 2026-11-18 · 1794956400.0
  4. ^ Fredman, Michael ; Willard, Dan (1990). "Blasting through the information theoretic barrier with fusion trees". Symposium on Theory of Computing : 1– 7. Wikipedia revision 1252903150, retrieved 2026-11-18 · 1794956400.0
  5. ^ a b Pătraşcu, Mihai; Thorup, Mikkel (21 May 2006). "Time-space trade-offs for predecessor search". Proceedings of the thirty-eighth annual ACM symposium on Theory of Computing . pp. 232– 240. arXiv : cs/0603043 . doi : 10.1145/1132516.1132551 . ISBN 1595931341 . S2CID 1232 . Wikipedia revision 1252903150, retrieved 2026-11-18 · 1794956400.0
  6. ^ Rahman, Naila; Cole, Richard; Raman, Rajeev (17 August 2001). Optimized Predecessor Data Structures for Internal Memory (PDF) . International Workshop on Algorithm Engineering. pp. 67– 78. Wikipedia revision 1252903150, retrieved 2026-11-18 · 1794956400.0
  7. ^ Willard, Dan (24 August 1983). "Log-logarithmic worst-case range queries are possible in space Θ(n)". Information Processing Letters . 17 (2): 81– 84. doi : 10.1016/0020-0190(83)90075-3 . Wikipedia revision 1252903150, retrieved 2026-11-18 · 1794956400.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Predecessor problem". 1729682147. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1252903150

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·