AlgorithmsData structuresEdit on GitHubEdit history
Bender–Farach-Colton LCA Algorithm
±1 RMQ2000
An algorithm that reduces LCA to range-minimum queries on an Euler tour whose adjacent values differ by ±1, then uses block decomposition, a sparse table and precomputed tables for small blocks to obtain linear preprocessing and constant-time queries. It is simpler to implement than earlier methods.
Origin
Lineage
Parent algorithms
Author statementThe paper points out the complexity of the Harel–Tarjan and Schieber–Vishkin methods and offers a simpler alternative. — doi:10.1007/10719839_9
Author statementThe paper uses the Cartesian tree to reduce general RMQ to the LCA problem. — doi:10.1007/10719839_9
Derived algorithms
Author statementFischer and Heun removed the ±1 restriction and the detour through LCA in the Bender–Farach-Colton method, handling RMQ directly. — doi:10.1007/11780441_5
Notable implementations
No implementations registered yet. Try a repo scan to find some. Repo scan
Find more: GitHub · Semantic Scholar · Google Scholar · arXiv
Claims & disputes
Loading…