• Title/Summary/Keyword: longest common non-superstring

Search Result 2, Processing Time 0.015 seconds

A New Algorithm for the Longest Common Non-superstring (최장공통비상위 문자열을 찾는 새로운 알고리즘)

  • Choi, Si-Won;Lee, Dok-Young;Kim, Dong-Kyue;Na, Joong-Chae;Sim, Jeong-Seop
    • Journal of KIISE:Computing Practices and Letters
    • /
    • v.15 no.1
    • /
    • pp.67-71
    • /
    • 2009
  • Recently, the string non-inclusion related problems have been studied vigorously. Given a set of strings F over a constant size alphabet, consider a string x such that x does not include any string in F as a substring. We call x a Common Non-SuperString(CNSS for short) of F. Among the CNSS's of F, the longest one with finite length is called the Longest Common Non-SuperString(LCNSS for short) of F. In this paper, we first propose a new graph model using prefixes of F. Next, we suggest an O(N)-time algorithm for finding the LCNSS of F, where N is the sum of the lengths of all the strings in F.