Suffix tree-based linear algorithms for multiple prefixes, single suffix counting and listing problems
Laurentius Leonard, Ken Tanaka

TL;DR
This paper introduces efficient suffix tree-based algorithms that solve counting and listing problems involving substrings with specified prefixes and suffixes in linear time and space.
Contribution
It presents the first linear-time, linear-space algorithms for counting and listing substrings with given prefix and suffix conditions using suffix trees.
Findings
Algorithms run in O(|T| + |P|) time for counting.
Algorithms run in O(|T| + |P| + c(ans)) for listing.
Solutions also extend to reversed prefix and suffix problems.
Abstract
Given two strings and and a set of strings , for each string , consider the unique substrings of that have as their prefix and as their suffix. Two problems then come to mind; the first problem being the counting of such substrings, and the second problem being the problem of listing all such substrings. In this paper, we describe linear-time, linear-space suffix tree-based algorithms for both problems. More specifically, we describe an time algorithm for the counting problem, and an time algorithm for the listing problem, where refers to the number of strings being listed in total, and refers to the total length of the strings in . We also consider the reversed version of the problems, where one prefix condition string and multiple suffix condition strings are given instead, and similarly…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAlgorithms and Data Compression · DNA and Biological Computing · Genome Rearrangement Algorithms
