pith. sign in

arxiv: 1211.7161 · v1 · pith:IM6XYWZ5new · submitted 2012-11-30 · 💻 cs.CC

Unshuffling a Square is NP-Hard

classification 💻 cs.CC
keywords stringgivenshufflesquarestringsalgorithmcharactersdetermine
0
0 comments X
read the original abstract

A shuffle of two strings is formed by interleaving the characters into a new string, keeping the characters of each string in order. A string is a square if it is a shuffle of two identical strings. There is a known polynomial time dynamic programming algorithm to determine if a given string z is the shuffle of two given strings x,y; however, it has been an open question whether there is a polynomial time algorithm to determine if a given string z is a square. We resolve this by proving that this problem is NP-complete via a many-one reduction from 3- Partition.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.