31 research outputs found

    On a greedy algorithm to construct universal cycles for permutations

    Get PDF
    A universal cycle for permutations of length n is a cyclic word or permutation, any factor of which is order-isomorphic to exactly one permutation of length n, and containing all permutations of length n as factors. It is well known that universal cycles for permutations of length n exist. However, all known ways to construct such cycles are rather complicated. For example, in the original paper establishing the existence of the universal cycles, constructing such a cycle involves finding an Eulerian cycle in a certain graph and then dealing with partially ordered sets. In this paper, we offer a simple way to generate a universal cycle for permutations of length n, which is based on applying a greedy algorithm to a permutation of length n - 1. We prove that this approach gives a unique universal cycle In for permutations, and we study properties of I n

    An explicit universal cycle for the (n-1)-permutations of an n-set

    Full text link
    We show how to construct an explicit Hamilton cycle in the directed Cayley graph Cay({\sigma_n, sigma_{n-1}} : \mathbb{S}_n), where \sigma_k = (1 2 >... k). The existence of such cycles was shown by Jackson (Discrete Mathematics, 149 (1996) 123-129) but the proof only shows that a certain directed graph is Eulerian, and Knuth (Volume 4 Fascicle 2, Generating All Tuples and Permutations (2005)) asks for an explicit construction. We show that a simple recursion describes our Hamilton cycle and that the cycle can be generated by an iterative algorithm that uses O(n) space. Moreover, the algorithm produces each successive edge of the cycle in constant time; such algorithms are said to be loopless

    Universal Lyndon Words

    Full text link
    A word ww over an alphabet Σ\Sigma is a Lyndon word if there exists an order defined on Σ\Sigma for which ww is lexicographically smaller than all of its conjugates (other than itself). We introduce and study \emph{universal Lyndon words}, which are words over an nn-letter alphabet that have length n!n! and such that all the conjugates are Lyndon words. We show that universal Lyndon words exist for every nn and exhibit combinatorial and structural properties of these words. We then define particular prefix codes, which we call Hamiltonian lex-codes, and show that every Hamiltonian lex-code is in bijection with the set of the shortest unrepeated prefixes of the conjugates of a universal Lyndon word. This allows us to give an algorithm for constructing all the universal Lyndon words.Comment: To appear in the proceedings of MFCS 201

    Sparse Kneser graphs are Hamiltonian

    Get PDF
    For integers k≥1k\geq 1 and n≥2k+1n\geq 2k+1, the Kneser graph K(n,k)K(n,k) is the graph whose vertices are the kk-element subsets of {1,…,n}\{1,\ldots,n\} and whose edges connect pairs of subsets that are disjoint. The Kneser graphs of the form K(2k+1,k)K(2k+1,k) are also known as the odd graphs. We settle an old problem due to Meredith, Lloyd, and Biggs from the 1970s, proving that for every k≥3k\geq 3, the odd graph K(2k+1,k)K(2k+1,k) has a Hamilton cycle. This and a known conditional result due to Johnson imply that all Kneser graphs of the form K(2k+2a,k)K(2k+2^a,k) with k≥3k\geq 3 and a≥0a\geq 0 have a Hamilton cycle. We also prove that K(2k+1,k)K(2k+1,k) has at least 22k−62^{2^{k-6}} distinct Hamilton cycles for k≥6k\geq 6. Our proofs are based on a reduction of the Hamiltonicity problem in the odd graph to the problem of finding a spanning tree in a suitably defined hypergraph on Dyck words

    Euler tours in hypergraphs

    Get PDF
    We show that a quasirandom kk-uniform hypergraph GG has a tight Euler tour subject to the necessary condition that kk divides all vertex degrees. The case when GG is complete confirms a conjecture of Chung, Diaconis and Graham from 1989 on the existence of universal cycles for the kk-subsets of an nn-set.Comment: version accepted for publication in Combinatoric
    corecore