The Euler Path to Static Level-Ancestors

Computer Science – Data Structures and Algorithms

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

11 pages

Scientific paper

Suppose that a rooted tree T is given for preprocessing. The Level-Ancestor Problem is to answer quickly queries of the following form. Given a vertex v and an integer i > 0, find the i-th vertex on the path from the root to v. Algorithms that achieve a linear time bound for preprocessing and a constant time bound for a query have been published by Dietz (1991), Alstrup and Holm (2000), and Bender and Farach (2002). The first two algorithms address dynamic versions of the problem; the last addresses the static version only and is the simplest so far. The purpose of this note is to expose another simple algorithm, derived from a complicated PRAM algorithm by Berkman and Vishkin (1990,1994). We further show some easy extensions of its functionality, adding queries for descendants and level successors as well as ancestors, extensions for which the formerly known algorithms are less suitable.

No associations

LandOfFree

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

The Euler Path to Static Level-Ancestors does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.

If you have personal experience with The Euler Path to Static Level-Ancestors, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and The Euler Path to Static Level-Ancestors will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFWR-SCP-O-161794

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.