Abstract
Let s = s 1 .. s n be a text (or sequence) on a finite alphabet Σ. A fingerprint in s is the set of distinct characters contained in one of its substrings. Fingerprinting a text consists in computing the set \({\cal F}\) of all fingerprints of all its substrings. A fingerprint, \(f \in {\cal F}\), admits a number of maximal locations 〈i,j 〉 in S, that is the alphabet of s i .. s j is f and s i − 1, s j + 1, if defined, are not in f. The set of maximal locations is \({\cal L}, \; |{\cal L}| \leq n |\Sigma|.\) Two maximal locations 〈i,j 〉 and 〈k,l 〉 such that s i ..s j = s k ..s l are named copies and the quotient of \({\cal L}\) according to the copy relation is named \({\cal L}_C\). The faster algorithm to compute all fingerprints in s runs in \(O(n+|{\cal L}|\log |\Sigma|)\) time. We present an \(O((n+|{\cal L}_C|)\log |\Sigma|)\) worst case time algorithm.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Amir, A., Apostolico, A., Landau, G.M., Satta, G.: Efficient text fingerprinting via parikh mapping. J. Discrete Algorithms 1(5-6), 409–421 (2003)
Bergeron, A., Chauve, C., de Montgolfier, F., Raffinot, M.: Computing common intervals of k permutations, with applications to modular decomposition of graphs. In: Brodal, G.S., Leonardi, S. (eds.) ESA 2005. LNCS, vol. 3669, pp. 779–790. Springer, Heidelberg (2005)
Didier, G.: Common intervals of two sequences. In: Benson, G., Page, R.D.M. (eds.) WABI 2003. LNCS (LNBI), vol. 2812, pp. 17–24. Springer, Heidelberg (2003)
Didier, G., Schmidt, T., Stoye, J., Tsur, D.: Character sets of strings (submitted, 2004)
Heber, S., Stoye, J.: Finding all common intervals of k permutations. In: Amir, A., Landau, G.M. (eds.) CPM 2001. LNCS, vol. 2089, pp. 207–218. Springer, Heidelberg (2001)
Karp, R.M., Miller, R.E., Rosenberg, A.L.: Rapid identification of repeated patterns in strings, trees and arrays. In: Proceedings of the 4th ACM Symposium on the Theory of Computing, Denver, CO, pp. 125–136. ACM Press, New York (1972)
Kolpakov, R., Raffinot, M.: New algorithms for text fingerprinting. In: Lewenstein, M., Valiente, G. (eds.) CPM 2006. LNCS, vol. 4009, pp. 342–353. Springer, Heidelberg (2006)
Kolpakov, R., Raffinot, M.: New algorithms for text fingerprinting. Journal of Discrete Algorithms (to appear, 2006)
McCreight, E.M.: A space-economical suffix tree construction algorithm. Journal of Algorithms 23(2), 262–272 (1976)
Ukkonen, E.: Constructing suffix trees on-line in linear time. In: van Leeuwen, J. (ed.) Proceedings of the 12th IFIP World Computer Congress, Madrid, Spain, pp. 484–492. North-Holland, Amsterdam (1992)
Weiner, P.: Linear pattern matching algorithm. In: Proceedings of the 14th Annual IEEE Symposium on Switching and Automata Theory, Washington, DC, pp. 1–11 (1973)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2008 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Kolpakov, R., Raffinot, M. (2008). Faster Text Fingerprinting. In: Amir, A., Turpin, A., Moffat, A. (eds) String Processing and Information Retrieval. SPIRE 2008. Lecture Notes in Computer Science, vol 5280. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-89097-3_4
Download citation
DOI: https://doi.org/10.1007/978-3-540-89097-3_4
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-89096-6
Online ISBN: 978-3-540-89097-3
eBook Packages: Computer ScienceComputer Science (R0)