1. The Heaviest Induced Ancestors Problem: Better Data Structures and Applications.
- Author
-
Abedin, Paniz, Hooshmand, Sahar, Ganguly, Arnab, and Thankachan, Sharma V.
- Subjects
- *
DATA structures , *COMPUTATIONAL geometry , *ANCESTORS - Abstract
Let T 1 and T 2 be two rooted trees with an equal number of leaves. The leaves are labeled, and the labeling of the leaves in T 2 is a permutation of those in T 1 . Nodes are associated with weight, such that the weight of a node u, denoted by W(u), is more than the weight of its parent. A node x ∈ T 1 and a node y ∈ T 2 are induced, iff their subtrees have at least one common leaf label. A heaviest induced ancestor query HIA (u 1 , u 2) with input nodes u 1 ∈ T 1 and u 2 ∈ T 2 asks to output the pair (u 1 ∗ , u 2 ∗) of induced nodes with the highest combined weight W (u 1 ∗) + W (u 2 ∗) , such that u 1 ∗ is an ancestor of u 1 and u 2 ∗ is an ancestor of u 2 . This is a useful primitive in several text processing applications. Gagie et al. (Proceedings of the 25th Canadian Conference on Computational Geometry, CCCG 2013, Waterloo, Ontario, Canada, 2013) introduced this problem and proposed three data structures with the following space-time trade-offs: (i) O (n log 2 n) space and O (log n log log n) query time, (ii) O (n log n) space and O (log 2 n) query time, and (iii) O(n) space and O (log 3 + ϵ n) query time. Here n is the number of nodes in both trees combined and ϵ > 0 is an arbitrarily small constant. We present two new data structures with better space-time trade-offs: (i) O (n log n) space and O (log n log log n) query time, and (ii) O(n) space and O (log 2 n / log log n) query time. Additionally, we present new applications of these results. [ABSTRACT FROM AUTHOR]
- Published
- 2022
- Full Text
- View/download PDF