Abstract
The focus of this paper is the problem of finding all nested common intervals of two general sequences. Depending on the treatment one wants to apply to duplicate genes, Blin et al. introduced three models to define nested common intervals of two sequences: the uniqueness, the free-inclusion, and the bijection models. We consider all the three models. For the uniqueness and the bijection models, we give O(n + N out )-time algorithms, where N out denotes the size of the output. For the free-inclusion model, we give an O(n 1+e + N out )-time algorithm, where varepsilon 0 is an arbitrarily small constant. We also present an upper bound on the size of the output for each model. For the uniqueness and the free-inclusion models, we show that N out =O(n 2 ). Let C = g∈Γ o 1 (g)O 2 (g), where Γ is the set of distinct genes, and O 1 (g) and O 2 (g) are, respectively, the numbers of copies of g in the two given sequences. For the bijection model, we show that N out =O(Cn). In this paper, we also study the problem of finding all approximate nested common intervals of two sequences on the bijection model. An O(δn + N out )-time algorithm is presented, where delta denotes the maximum number of allowed gaps. In addition, we show that for this problem N out is O(δn 3 ). © 2012 IEEE.