A Versatile Algorithm to Generate Various Combinatorial Structures

Computer Science – Data Structures and Algorithms

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

Scientific paper

Algorithms to generate various combinatorial structures find tremendous importance in computer science. In this paper, we begin by reviewing an algorithm proposed by Rohl that generates all unique permutations of a list of elements which possibly contains repetitions, taking some or all of the elements at a time, in any imposed order. The algorithm uses an auxiliary array that maintains the number of occurrences of each unique element in the input list. We provide a proof of correctness of the algorithm. We then show how one can efficiently generate other combinatorial structures like combinations, subsets, n-Parenthesizations, derangements and integer partitions & compositions with minor changes to the same algorithm.

No associations

LandOfFree

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

A Versatile Algorithm to Generate Various Combinatorial Structures does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.

If you have personal experience with A Versatile Algorithm to Generate Various Combinatorial Structures, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and A Versatile Algorithm to Generate Various Combinatorial Structures will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFWR-SCP-O-637280

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.