Lecture Notes in Computer Science, 2003, Volume 2906/2003, 517-526, DOI: 10.1007/978-3-540-24587-2_53

Range Mode and Range Median Queries on Lists and Trees

Danny Krizanc, Pat Morin and Michiel Smid

View Related Documents

Abstract

We consider algorithms for preprocessing labelled lists and trees so that, for any two nodes u and v we can answer queries of the form: What is the mode or median label in the sequence of labels on the path from u to v.
This work was partly funded by the Natural Sciences and Engineering Research Council of Canada.

Fulltext Preview

Image of the first page of the fulltext document