$\sa{1}\,\sa{2}\,\sa{6}\,\sa{3}\,\sa{9}\,\sa{2}\,\sa{3}\,\sa{7}\,\sa{5}\,\sa{7}$ is a shortest common superstring for the set of seven words $\{\sa{1}\,\sa{2}, \sa{2}\,\sa{3}, \sa{2}\,\sa{6}, \sa{5}\,\sa{7}, \sa{6}\,\sa{3}, \sa{7}\,\sa{5}, \sa{9}\,\sa{2}\}$.
Problem 62: Shortest Common Superstring of Short Words |
A common superstring of a set $X$ of words is a word in which all elements of $X$ occur as factors. Computing a shortest common superstring (SCS) is an NP-complete problem but there are simple cases that can be solved efficiently, like the special case discussed in the problem.