Title :
All shortest paths in weighted grid graphs and its application to finding all approximate repeats in strings
Author :
Schmidt, Jeanette P.
Author_Institution :
Dept. of Comput. Sci., Polytechnic Univ., Brooklyn, NY, USA
Abstract :
Shortest paths in directed grid graphs of dimension (m×n) can be used to model the string edit problem, which consists of obtaining optimal (weighted) alignments between substrings of A, |A|=m, and substrings of B, |B|=n. We build a data structure (in O(mn log m) time) that supports O(log m) time queries about the weight of any of the O(m2n) shortest paths from the vertices in column 0 of the graph to all other vertices. Using these techniques we present a simple O(n2 log n) time and O(n2) space algorithm to find all (the locally optimal) approximate tandem (or non-tandem) repeats xy within a string of size n. This improves (by a factor of log n) upon several previous algorithms for this problem, and is the first algorithm to find all locally optimal repeats. For edit graphs with weights in {0, -1, 1}, a slight modification of our techniques yields an O(n2) algorithm for the cyclic string comparison problem, as compared to O(n2 log n) for the case of general weights
Keywords :
computational complexity; data structures; directed graphs; string matching; all approximate repeats; approximate tandem; data structure; directed grid graphs; edit graphs; locally optimal; locally optimal repeats; shortest paths; space complexity; time complexity; weighted grid graphs; Artificial intelligence; Computer science; Costs; Data structures; Matrices; Pattern matching;
Conference_Titel :
Theory of Computing and Systems, 1995. Proceedings., Third Israel Symposium on the
Conference_Location :
Tel Aviv
Print_ISBN :
0-8186-6915-2
DOI :
10.1109/ISTCS.1995.377044