We present new tradeoffs between space and query-time for exact distance oracles in directed weighted planar graphs. These tradeoffs are almost optimal in the sense that they are within polylogarithmic, sub-polynomial or arbitrarily small polynomial factors from the naïve linear space, constant query-time lower bound. These tradeoffs include: (i) an oracle with space 1 O(n 1+ ) and query-timeÕ(1) for any constant > 0, (ii) an oracle with spaceÕ(n) and query-timeÕ(n ) for any constant > 0, and (iii) an oracle with space n 1+o(1) and query-time n o(1) .
Background The deviation of the observed frequency of a word w from its expected frequency in a given sequence x is used to determine whether or not the word is avoided. This concept is particularly useful in DNA linguistic analysis. The value of the deviation of w, denoted by , effectively characterises the extent of a word by its edge contrast in the context in which it occurs. A word w of length is a -avoided word in x if , for a given threshold . Notice that such a word may be completely absent from x. Hence, computing all such words naïvely can be a very time-consuming procedure, in particular for large k.Results In this article, we propose an -time and -space algorithm to compute all -avoided words of length k in a given sequence of length n over a fixed-sized alphabet. We also present a time-optimal -time algorithm to compute all -avoided words (of any length) in a sequence of length n over an integer alphabet of size . In addition, we provide a tight asymptotic upper bound for the number of -avoided words over an integer alphabet and the expected length of the longest one. We make available an implementation of our algorithm. Experimental results, using both real and synthetic data, show the efficiency and applicability of our implementation in biological sequence analysis.ConclusionsThe systematic search for avoided words is particularly useful for biological sequence analysis. We present a linear-time and linear-space algorithm for the computation of avoided words of length k in a given sequence x. We suggest a modification to this algorithm so that it computes all avoided words of x, irrespective of their length, within the same time complexity. We also present combinatorial results with regards to avoided words and absent words.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.