Fast algorithms to generate necklaces, unlabeled necklaces, and irreducible polynomials over GF(2)(1)

Citation
K. Cattell et al., Fast algorithms to generate necklaces, unlabeled necklaces, and irreducible polynomials over GF(2)(1), J ALGORITHM, 37(2), 2000, pp. 267-282
Citations number
24
Categorie Soggetti
Computer Science & Engineering
Journal title
JOURNAL OF ALGORITHMS
ISSN journal
01966774 → ACNP
Volume
37
Issue
2
Year of publication
2000
Pages
267 - 282
Database
ISI
SICI code
0196-6774(200011)37:2<267:FATGNU>2.0.ZU;2-W
Abstract
Many applications call for exhaustive lists of strings subject to various c onstraints, such as inequivalence under group actions. A k-ary necklace is an equivalence class of k-ary strings under rotation (the cyclic group). A k-ary unlabeled necklace is an equivalence class of k-ary strings under rot ation and permutation of alphabet symbols. We present new, fast, simple, re cursive algorithms for generating (i.e., listing) all necklaces and binary unlabeled necklaces. These algorithms have optimal running times in the sen se that their running times are proportional to the number of necklaces pro duced. The algorithm for generating necklaces can be used as the basis for efficiently generating many other equivalence classes of strings under rota tion and has been applied to generating bracelets, fixed density necklaces, and chord diagrams. As another application, we describe the implementation of a fast algorithm for listing all degree n irreducible and primitive pol ynomials over GF(2). (C) 2000 Academic Press.