From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c42dbf68f5320193 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-30 08:05:22 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!nntp.abs.net!uunet!dca.uu.net!nyc.uu.net!ash.uu.net!spool0901.news.uu.net!spool0900.news.uu.net!reader0902.news.uu.net!not-for-mail Message-ID: <3CCEB2E0.7050701@mail.com> Date: Tue, 30 Apr 2002 11:06:08 -0400 From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0rc1) Gecko/20020417 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Generation of permutations References: <4519e058.0204300552.15317df9@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Cache-Post-Path: master.nyc.kbcfp.com!unknown@mosquito.nyc.kbcfp.com X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1020179120 reader2.ash.ops.us.uu.net 4483 204.253.250.10 Xref: archiver1.google.com comp.lang.ada:23275 Date: 2002-04-30T11:06:08-04:00 List-Id: Ted Dennison wrote: > Reinert Korsnes wrote in message news:... > >>Are there any good (Ada95) packages for generation of permutations >>(of elements in array) ? > > Sadly, that doesn't come up much...outside of homework assignments. ;-) > Are you writing a bogosort? Whether or not it comes up much, in fact the algorithms next_permutation and prev_permutation are part of the C++ standard library. You can find them online in . It should not be too difficult for the OP to translate them to Ada.