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
- Dynamic ordered sets with exponential search trees · retrieved 2026-11-17 · rev 1252903150
Cite this reference
MLA "Dynamic ordered sets with exponential search trees." Andersson, Arne; Thorup, Mikkel (2007), "Dynamic ordered sets with exponential search trees", Journal of the ACM , 54 (3. 2026-11-17. https://en.wikipedia.org/wiki/Mikkel_Thorup. Accessed 24 November 2026.
Chicago "Dynamic ordered sets with exponential search trees." Andersson, Arne; Thorup, Mikkel (2007), "Dynamic ordered sets with exponential search trees", Journal of the ACM , 54 (3. 2026-11-17. https://en.wikipedia.org/wiki/Mikkel_Thorup.
APA Andersson, Arne; Thorup, Mikkel (2007), "Dynamic ordered sets with exponential search trees", Journal of the ACM , 54 (3. (2026). Dynamic ordered sets with exponential search trees. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Mikkel_Thorup
- Priority queues: small, monotone and trans-dichotomous · retrieved 2026-11-17 · rev 1252903150
Cite this reference
MLA "Priority queues: small, monotone and trans-dichotomous." Raman, Rajeev (1996), "Priority queues: small, monotone and trans-dichotomous", Fourth Annual European Symposium on Algo. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "Priority queues: small, monotone and trans-dichotomous." Raman, Rajeev (1996), "Priority queues: small, monotone and trans-dichotomous", Fourth Annual European Symposium on Algo. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Raman, Rajeev (1996), "Priority queues: small, monotone and trans-dichotomous", Fourth Annual European Symposium on Algo. (2026). Priority queues: small, monotone and trans-dichotomous. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Optimal Bounds for the Predecessor Problem and Related Problems · retrieved 2026-11-17 · rev 1252903150
Cite this reference
MLA "Optimal Bounds for the Predecessor Problem and Related Problems." a b c Beame, Paul; Fich, Faith (August 2002). 2026-11-17. https://en.wikipedia.org/wiki/Faith_Ellen. Accessed 24 November 2026.
Chicago "Optimal Bounds for the Predecessor Problem and Related Problems." a b c Beame, Paul; Fich, Faith (August 2002). 2026-11-17. https://en.wikipedia.org/wiki/Faith_Ellen.
APA a b c Beame, Paul; Fich, Faith (August 2002). (2026). Optimal Bounds for the Predecessor Problem and Related Problems. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Faith_Ellen
- Blasting through the information theoretic barrier with fusion trees · retrieved 2026-11-17 · rev 1252903150
Cite this reference
MLA "Blasting through the information theoretic barrier with fusion trees." Fredman, Michael ; Willard, Dan (1990). 2026-11-17. https://en.wikipedia.org/wiki/Michael_Fredman. Accessed 24 November 2026.
Chicago "Blasting through the information theoretic barrier with fusion trees." Fredman, Michael ; Willard, Dan (1990). 2026-11-17. https://en.wikipedia.org/wiki/Michael_Fredman.
APA Fredman, Michael ; Willard, Dan (1990). (2026). Blasting through the information theoretic barrier with fusion trees. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Michael_Fredman
- Time-space trade-offs for predecessor search · retrieved 2026-11-17 · rev 1252903150
Cite this reference
MLA "Time-space trade-offs for predecessor search." a b Pătraşcu, Mihai; Thorup, Mikkel (21 May 2006). 2026-11-17. https://en.wikipedia.org/wiki/ArXiv_(identifier). Accessed 24 November 2026.
Chicago "Time-space trade-offs for predecessor search." a b Pătraşcu, Mihai; Thorup, Mikkel (21 May 2006). 2026-11-17. https://en.wikipedia.org/wiki/ArXiv_(identifier).
APA a b Pătraşcu, Mihai; Thorup, Mikkel (21 May 2006). (2026). Time-space trade-offs for predecessor search. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ArXiv_(identifier)
- 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 · retrieved 2026-11-17 · rev 1252903150
Cite this reference
MLA "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." Rahman, Naila; Cole, Richard; Raman, Rajeev (17 August 2001). 2026-11-17. https://www.cc.gatech.edu/~bader/COURSES/UNM/ece637-Fall2003/papers/RCR01.pdf. Accessed 24 November 2026.
Chicago "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." Rahman, Naila; Cole, Richard; Raman, Rajeev (17 August 2001). 2026-11-17. https://www.cc.gatech.edu/~bader/COURSES/UNM/ece637-Fall2003/papers/RCR01.pdf.
APA Rahman, Naila; Cole, Richard; Raman, Rajeev (17 August 2001). (2026). 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. Retrieved November 24, 2026, from https://www.cc.gatech.edu/~bader/COURSES/UNM/ece637-Fall2003/papers/RCR01.pdf
- Log-logarithmic worst-case range queries are possible in space Θ(n) · retrieved 2026-11-17 · rev 1252903150
Cite this reference
MLA "Log-logarithmic worst-case range queries are possible in space Θ(n)." Willard, Dan (24 August 1983). 2026-11-17. https://en.wikipedia.org/wiki/Dan_Willard. Accessed 24 November 2026.
Chicago "Log-logarithmic worst-case range queries are possible in space Θ(n)." Willard, Dan (24 August 1983). 2026-11-17. https://en.wikipedia.org/wiki/Dan_Willard.
APA Willard, Dan (24 August 1983). (2026). Log-logarithmic worst-case range queries are possible in space Θ(n). Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Dan_Willard
Cite this article
MLA
"Predecessor problem." encyclopegia.org, 2024, https://encyclopegia.org/wiki/predecessor-problem. Accessed 24 November 2026.
Chicago
"Predecessor problem." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/predecessor-problem.
APA
encyclopegia.org. (2024). Predecessor problem. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/predecessor-problem
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON