Abstract
In this paper we focus on a total (but non-lexicographic) ordering of strings called V-order. We devise a new linear-time algorithm for computing the V-comparison of two finite strings. In comparison with the previous algorithm in the literature, our algorithm is both conceptually simpler, based on recording letter positions in increasing order, and more straightforward to implement, requiring only linked lists.
Original language | English |
---|---|
Pages (from-to) | 115-126 |
Number of pages | 12 |
Journal | Fundamenta Informaticae |
Volume | 139 |
Issue number | 2 |
DOIs | |
Publication status | Published - 2015 |
Externally published | Yes |
Keywords
- algorithm
- array
- comparison
- complexity
- data structure
- lexicographic order
- linear
- linked-list
- V -order
- Lyndon word
- string
- total order
- word