2026-07-072026-07-07http://salesiana.dossiersoluciones.com/handle/123456789/31697We 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.12 pages, 6 figuresData Structures and AlgorithmsE.1Range Mode and Range Median Queries on Lists and Treestext