Abstract
Given two n-bit (cyclic) binary strings, A and B, represented on a circle (necklace instances), let each sequence have the same number (k) of 1's. We are interested in computing the cyclic swap distance between A and B, i.e. the minimum number of swaps needed to convert A to B, minimized over all possible rotations of B. We show that, given the compressed representation of A and B, this distance may be computed in O(k2).
Original language | English |
---|---|
Pages (from-to) | 351-363 |
Number of pages | 13 |
Journal | International Journal of Computational Methods |
Volume | 5 |
Issue number | 3 |
DOIs | |
State | Published - 2008 |
Bibliographical note
Funding Information:∗Partially supported by the Israel Science Foundation grant 35/05.
Keywords
- Cyclic strings
- Music retrieval
- Repeated patterns
- Rhythmic/melodic similarity
- Swap distance
ASJC Scopus subject areas
- Computer Science (miscellaneous)
- Computational Mathematics