This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/11364] half of permutations missing
- From: "craie at acm dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jun 2003 16:19:40 -0000
- Subject: [Bug libstdc++/11364] half of permutations missing
- References: <20030629013049.11364.craie@acm.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11364
------- Additional Comments From craie at acm dot org 2003-06-29 16:19 -------
Subject: Re: half of permutations missing
Falk et. al.,
On Sun, Jun 29, 2003 at 11:57:49AM -0000, falk at debian dot org wrote:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11364
>
> falk at debian dot org changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> Status|UNCONFIRMED |WAITING
>
>
> ------- Additional Comments From falk at debian dot org 2003-06-29 11:57 -------
> I still can't see the bug. I get:
>
> 1 gives 1 permutations.
> 2 gives 2 permutations.
> 3 gives 6 permutations.
> 4 gives 24 permutations.
>
These are fine...
> 5 gives 60 permutations.
> 6 gives 360 permutations.
> 7 gives 2520 permutations.
> 8 gives 20160 permutations.
> 9 gives 181440 permutations.
> 10 gives 1814400 permutations.
>
All these are half what they should be! The duplicate value is
causing problems with the permutation algorithm.
I'm trying to test all arrangements of data in a list and am
only able to move through half of them due to this 'glitch'.
Later, Jason
--
(designed for a fixed-width font!!!)
/**************************************************************************
* Jason James CompSci Teacher -+ *
* RPG Gamer |- but maybe not in that order *
* Email: craie@acm.org Husband -+ *
**************************************************************************/