Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #87030
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!newsreader4.netcologne.de!news.netcologne.de!feeder1.xsusenet.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <gheskett@wdtv.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.047 |
| X-Spam-Evidence | '*H*': 0.91; '*S*': 0.00; 'beer': 0.05; 'output': 0.05; 'say,': 0.05; 'binary': 0.07; 'remaining': 0.07; 'enormous': 0.09; 'latter': 0.09; 'useful,': 0.14; 'exhaustive': 0.16; 'formerly': 0.16; 'soap,': 0.16; 'subject:generation': 0.16; 'elements': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'seems': 0.21; '>>>': 0.22; 'install': 0.23; 'header:User-Agent:1': 0.23; 'now?': 0.24; 'sorry,': 0.24; 'cheers,': 0.24; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'am,': 0.29; 'generally': 0.29; 'related': 0.29; 'url:mailman': 0.30; 'raised': 0.31; 'probably': 0.32; 'url:python': 0.33; 'computer.': 0.33; 'url:non-standard http port': 0.33; 'could': 0.34; 'received:66': 0.35; 'display': 0.35; 'something': 0.35; 'but': 0.35; 'there': 0.35; 'version': 0.36; 'url:listinfo': 0.36; 'doing': 0.36; 'url:org': 0.36; 'wrong': 0.37; 'list': 0.37; 'to:addr:python-list': 0.38; 'skip:8 10': 0.39; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'even': 0.60; 'dave': 0.60; 'received:unknown': 0.61; 'new': 0.61; 'march': 0.61; 'content-disposition:inline': 0.62; 'address': 0.63; 'header :Message-Id:1': 0.63; 'visit': 0.64; 'more': 0.64; 'close': 0.67; 'received:204': 0.75; 'power': 0.76; '100': 0.79; 'age': 0.80; '2015': 0.84; 'played': 0.84; 'angel': 0.91; 'boxes': 0.91; 'hundred': 0.95 |
| X-Spam-Status | No, score=0.5 required=5.0 |
| X-Spam-Level | |
| From | Gene Heskett <gheskett@wdtv.com> |
| To | python-list@python.org |
| Subject | Re: Speeding up permutations generation |
| Date | Fri, 6 Mar 2015 11:14:06 -0500 |
| User-Agent | KMail/1.9.10 (enterprise35 0.20100827.1168748) |
| References | <CADgpKWb=q2=YEJSS1yRkgzF37nO5BNRnywm+zhcwF-MAOr6MdA@mail.gmail.com> <201503060532.03842.gheskett@wdtv.com> <54F98DFA.4090503@davea.name> |
| In-Reply-To | <54F98DFA.4090503@davea.name> |
| X-KMail-QuotePrefix | > |
| MIME-Version | 1.0 |
| Content-Type | Text/Plain; charset="utf-8" |
| Content-Transfer-Encoding | quoted-printable |
| Content-Disposition | inline |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.19 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.115.1425658456.21433.python-list@python.org> (permalink) |
| Lines | 52 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1425658456 news.xs4all.nl 2889 [2001:888:2000:d::a6]:35257 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:87030 |
Show key headers only | View raw
On Friday 06 March 2015 06:22:34 Dave Angel wrote: > On 03/06/2015 05:32 AM, Gene Heskett wrote: > > On Friday 06 March 2015 03:24:48 Abhiram R wrote: > >>> A list of 100 elements has approximately 9.33 x 10**157 > >>> permutations. If you could somehow generate one permutation every > >>> yoctosecond, exhausting them would still take more than a hundred > >>> orders of magnitude longer than the age of the universe. > >>> -- > >>> https://mail.python.org/mailman/listinfo/python-list > >> > >> True that :D I may have exaggerated on the number. Let's consider > >> something more practically manageable => 50 elements with a 50! > >> permutation. > >> Is there a solution now? > > > > Yes, but its now only 8.881784197e+84 elements so it is still not a > > practical target. Doing all elements of a matrix is generally equ > > to n!, and 50 raised to the 50th power is still a number that will > > probably use up this suns remaining lifetime doing it in assembly. > > Sorry, but 50! is not even close to 50**50. The latter is 85 digits > as you say, but 50! is "only" 64. > > > 30414093201713378043612608166064768844377641568960512000000000000L What utility output that as an L ? But you are right, new wheezy install with TBE desktop and kcalc has been played with. I used the wrong button. It seems every new and streamlined version is progressively stripped of some function I have formerly found useful, Grrrrrr. Not related to this, but now the binary bit display has been excised. Handier than bottled beer when checking/designing address decoders. > Still an enormous number of course, so an exhaustive visit to all > those permutations is still impossible on a conventional computer. +5 > > -- > DaveA Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene>
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Speeding up permutations generation Gene Heskett <gheskett@wdtv.com> - 2015-03-06 11:14 -0500
csiph-web