Abstract
For a pair of strings (S1, S2), define the suffix-prefix match of (S1, S2) to be the longest suffix of string S1 that matches a prefix of string S2. The following problem is considered in this paper. Given a collection of strings S1, S2,...,Sk of total length m, find the suffix-prefix match for each of the k(k - 1) ordered pairs of strings. We present an algorithm that solves the problem in O(m + k2) time, for any fixed alphabet. Since the size of the input is Ω(m) and the size of the output is Ω(k2) this solution is optimal.
| Original language | English (US) |
|---|---|
| Pages (from-to) | 181-185 |
| Number of pages | 5 |
| Journal | Information Processing Letters |
| Volume | 41 |
| Issue number | 4 |
| DOIs | |
| State | Published - Mar 18 1992 |
| Externally published | Yes |
All Science Journal Classification (ASJC) codes
- Theoretical Computer Science
- Signal Processing
- Information Systems
- Computer Science Applications
Keywords
- Design of algorithms
- string matching
- suffix tree
Fingerprint
Dive into the research topics of 'An efficient algorithm for the All Pairs Suffix-Prefix Problem'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver