English

Greedy Shortest Common Superstring Approximation in Compact Space

Data Structures and Algorithms 2019-12-04 v2

Abstract

Given a set of strings, the shortest common superstring problem is to find the shortest possible string that contains all the input strings. The problem is NP-hard, but a lot of work has gone into designing approximation algorithms for solving the problem. We present the first time and space efficient implementation of the classic greedy heuristic which merges strings in decreasing order of overlap length. Our implementation works in O(nlogσ)O(n \log \sigma) time and bits of space, where nn is the total length of the input strings in characters, and σ\sigma is the size of the alphabet. After index construction, a practical implementation of our algorithm uses roughly 5nlogσ5 n \log \sigma bits of space and reasonable time for a real dataset that consists of DNA fragments.

Keywords

Cite

@article{arxiv.1707.07727,
  title  = {Greedy Shortest Common Superstring Approximation in Compact Space},
  author = {Jarno Alanko and Tuukka Norri},
  journal= {arXiv preprint arXiv:1707.07727},
  year   = {2019}
}

Comments

13 Pages, 3 figures, accepted to the 24th International Symposium on String Processing and Information Retrieval (SPIRE 2017)

R2 v1 2026-06-22T20:56:08.613Z