{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/greedy-shortest-common-superstring","title":"Greedy Shortest Common Superstring Approximation in Compact Space","arxiv_id":"1707.07727","date":"2017-07-24","proceeding":null,"authors":["Jarno Alanko","Tuukka Norri"],"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(n \\log \\sigma)$ time and bits of space, where $n$ 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 $5 n \\log \\sigma$ bits of space and reasonable time for a real dataset that consists of DNA fragments.","url_abs":"https://arxiv.org/abs/1707.07727v2","url_pdf":"https://arxiv.org/pdf/1707.07727v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"greedy-shortest-common-superstring","repo_url":"https://github.com/tsnorri/compact-superstring","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":null},{"paper_slug":"greedy-shortest-common-superstring","repo_url":"https://github.com/algbio/GreedySuperstring","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":null,"mcp":null,"developers":"https://syntology.ai/developers"},"arxiv_metadata":null,"syntology_extracted_results":null}