Generating Necklaces and Strings with Forbidden Substrings

Frank Ruskey, Department of Computer Science, University of Victoria, Canada.
Joe Sawada, Department of Computer Science, University of Victoria, Canada.

Abstract:

Given a length m string f over a k-ary alphabet and a positive integer n, we develop efficient algorithms to generate Each of the algorithms runs in amortized time O(1) per string generated, independent of k, m, and n.



Back to list of publications.