Abstract
The shuffle of two words u and v of A * is the language u ш v consisting of all words u 1 v 1 u 2 v 2 …u k v k , where k ≥ 0 and the u i and the v i are the words of A * such that u = u 1 u 2 …u k and v = v 1 v 2 …v k . A word u ∈ A * is a square for the shuffle product if it is the shuffle of two identical words (i.e., u ∈ v ш v for some v ∈ A *). Whereas, it can be tested in polynomial-time whether or not u ∈ v 1 ш v 2 for given words u, v 1 and v 2 [J.-C. Spehner, Le Calcul Rapide des Mélanges de Deux Mots, Theoretical Computer Science, 1986], we show in this paper that it is NP-complete to determine whether or not a word u is a square for the shuffle product. The novelty in our approach lies in representing words as linear graphs, in which deciding whether or not a given word is a square for the shuffle product reduces to computing some inclusion-free perfect matching.
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
Allauzen, C.: Calcul efficace du shuffle de k mots. Tech. rep., Institut Gaspard Monge, Universit Marne-la-Vallé (2000)
Aoki, H., Uehara, R., Yamazaki, K.: Expected length of longest common subsequences of two biased random strings and its application. Tech. Rep. 1185, RIMS Kokyuroku (2001)
Buss, S., Soltys, M.: Unshuffling a square is NP-hard (2012) (submitted)
Choffrut, C., Karhumäki, J.: Combinatorics of Words. In: Rozenberg, G., Salomaa, A. (eds.) Handbook of Formal Languages. Springer (1997)
Iwama, K.: Personal communication (2012)
Warmutht, M.K., Haussler, D.: On the complexity of iterated shuffle. Journal of Computer and System Sciences 28(3), 345–358 (1984)
Downey, R., Fellows, M.: Parameterized Complexity. Springer (1999)
Erdong, C., Linji, Y., Hao, Y.: Improved algorithms for 2-interval pattern problem. Journal of Combinatorial Optimization 13, 263–275 (1983)
Iwama, K.: Unique decomposability of shuffled strings: A formal treatment of asynchronous time-multiplexed communication. In: Proc. 15th Annual ACM Symposium on Theory of Computing (STOC), Boston, Massachusetts, USA, pp. 374–381. ACM (1983)
Erickson, J.: How hard is unshuffling a string? Theoretical Computer Science, http://cstheory.stackexchange.com/q/34 (version: 2010-12-01)
Kececioglu, J.D., Gusfield, D.: Reconstructing a history of recombinations from a set of sequences. Discrete Applied Mathematics 88(1-3), 239–260 (1998)
Kimura, T.: An algebraic system for process structuring and interprocess communication. In: Chandra, A., Wotschke, D., Friedman, E., Harrison, M.A. (eds.) Proc. 8th Annual ACM Symposium on Theory of Computing (STOC), Hershey, Pennsylvania, USA, pp. 92–100. ACM (1976)
van Leeuwen, J., Nivat, M.: Efficient recognition of rational relations. Information Processing Letters 14(1), 34–38 (1982)
Li, S., Li, M.: On two open problems of 2-interval patterns. Theoretical Computer Science 410(24-25), 2410–2423 (2009)
Lothaire, M.: Applied Combinatorics on Words. Encyclopedia of Mathematics and its Applications, vol. 105. Cambridge university press (2005)
Maier, D.: The complexity of some problems on subsequences and supersequences. Journal of the ACM 25(2), 322–336 (1978)
Mansfield, A.: On the computational complexity of a merge recognition problem. Discrete Applied Mathematics 5, 119–122 (1983)
Rampersad, D.H.N., Shallit, J.: Shuffling and unshuffling (2011), http://arxiv.org/abs/1106.5767
Spehner, J.C.: Le calcul rapide des melanges de deux mots. In: Theoretical Computer Science pp. 171–203 (1986)
Vialette, S.: On the computational complexity of 2-interval pattern matching problems. Theoretical Computer Science 312(2-3), 223–249 (2004)
Vialette, S.: Two-interval pattern problems. In: Kao, M.Y. (ed.) Encyclopedia of Algorithms, pp. 985–989. Springer (2008)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2013 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Rizzi, R., Vialette, S. (2013). On Recognizing Words That Are Squares for the Shuffle Product. In: Bulatov, A.A., Shur, A.M. (eds) Computer Science – Theory and Applications. CSR 2013. Lecture Notes in Computer Science, vol 7913. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-38536-0_21
Download citation
DOI: https://doi.org/10.1007/978-3-642-38536-0_21
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-38535-3
Online ISBN: 978-3-642-38536-0
eBook Packages: Computer ScienceComputer Science (R0)