Combinatorial generation by fusing loopless algorithms

  • Authors:
  • Tadao Takaoka;Stephen Violich

  • Affiliations:
  • Department of Computer Science and Software Engineering, University of Canterbury, Christchurch, New Zealand;Department of Computer Science and Software Engineering, University of Canterbury, Christchurch, New Zealand

  • Venue:
  • CATS '06 Proceedings of the 12th Computing: The Australasian Theroy Symposium - Volume 51
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

Some combinatorial generation problems can be broken into subproblems for which loopless algorithms already exist. We discuss means by which loop-less algorithms can be fused to produce a new loop-less algorithm that solves the original problem. We demonstrate this method with two new loopless algorithms, MIXPAR and MULTPERM. MIXPAR generates well-formed parenthesis strings containing two different types of parentheses. MULTPERM generates multiset permutations in linear space using only arrays; it is simpler and more efficient than the recent algorithm of Korsh and LaFollette (2004).