Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Permuting and Combining

Author: Dieter Buerssner

Date: 12:48:47 07/08/04

Go up one level in this thread


On July 08, 2004 at 06:41:48, Tord Romstad wrote:

>I am not sure I understand exactly what you want to do.  You ask
>about permutations in the subject line, but from your example above
>it looks like what you really want is just a list of all the subsets
>of the N strings.  But such a list is of course trivial to produce
>(for instance, by looping through binary numbers from 0 to 2^N-1 and
>printing the corresponding subsets)

Indeed. My code is much too complicated. I was looping over the more complicated
problem, to print all subsets with a given number of objects.

Regards,
Dieter





This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.