English

Ranking Binary Unlabelled Necklaces in Polynomial Time

Combinatorics 2022-06-03 v2 Discrete Mathematics

Abstract

Unlabelled Necklaces are an equivalence class of cyclic words under both the rotation (cyclic shift) and the relabelling operations. The relabelling of a word is a bijective mapping from the alphabet to itself. The main result of the paper is the first polynomial-time algorithm for ranking unlabelled necklaces of a binary alphabet. The time-complexity of the algorithm is O(n6log2n)O(n^6 \log^2 n), where nn is the length of the considered necklaces. The key part of the algorithm is to compute the rank of any word with respect to the set of unlabelled necklaces by finding three other ranks: the rank over all necklaces, the rank over symmetric unlabelled necklaces, and the rank over necklaces with an enclosing labelling. The last two concepts are introduced in this paper.

Keywords

Cite

@article{arxiv.2205.13916,
  title  = {Ranking Binary Unlabelled Necklaces in Polynomial Time},
  author = {Duncan Adamson},
  journal= {arXiv preprint arXiv:2205.13916},
  year   = {2022}
}

Comments

Short version to appear at the 24th International Conference on Descriptional Complexity of Formal systems

R2 v1 2026-06-24T11:30:49.225Z