Score: 0

Las Vegas algorithms to generate universal cycles and de Bruijn sequences uniformly at random

Published: October 18, 2025 | arXiv ID: 2510.16545v3

By: Joe Sawada, Daniel Gabrić

Potential Business Impact:

Makes computers create random patterns faster.

Business Areas:
A/B Testing Data and Analytics

We present practical algorithms for generating universal cycles uniformly at random. In particular, we consider universal cycles for shorthand permutations, subsets and multiset permutations, weak orders, and orientable sequences. Additionally, we consider de Bruijn sequences, weight-range de Bruin sequences, and de Bruijn sequences, with forbidden $0^z$ substring. Each algorithm, seeded with a random element from the given set, applies a random walk of an underlying Eulerian de Bruijn graph to obtain a random arborescence (spanning in-tree). Given the random arborescence and the de Bruijn graph, a corresponding random universal cycle can be generated in constant time per symbol. We present experimental results on the average cover time needed to compute a random arborescence for each object using a Las Vegas algorithm.

Page Count
16 pages

Category
Computer Science:
Discrete Mathematics