Diese Arbeit beschreibt den Algorithmus von Bender und Farach-Colton zur Lösung des Problems des letzten gemeinsamen Vorfahren (engl.: Least Common Ancestor). Bei diesem algorithmischen Problem soll ein gegebener Baum möglichst effizient vorverarbeitet werden, so dass anschließend Anfragen bezüglich des letzten gemeinsamen Vorfahren für beliebige Knotenpaare in konstanter Zeit beantwortet werden können. Die Hauptidee des Algorithmus ist die Reduktion auf das Range Minimum Query-Problem. Diese Arbeit beschreibt detailliert die Herleitung einer solchen Vorverarbeitung und illustriert den Nutzen des entwickelten Algorithmus anhand ausgewählter Beispiele. Anschließend wird die Verallgemeinerung des Problems auf gerichtete azyklische Graphen skizziert.
This paper provides an extended overview on the solution to the problem of the least common ancestor algorithm, based on the findings of Bender and Farach-Coltonin 2000. The content of this algorithmic problem is to efficiently preprocess any given tree in such a way that queries to the least common ancestor of any pair of nodes can be answered in constant time. The main idea of the presented algorithm mostly consists of a reduction to the range minimumq uery-problem. This paper elaborates the derivation of the preprocessing and illustrates the benefits of the developed algorithm through well-chosen examples. Finally, we sketch the least common ancestor problem for general directed acyclic graphs.