Re: Permutations
- Posted by Tor Bernhard Gausen <tor.gausen at C2I.NET> May 02, 1999
- 613 views
Yep! First of all: you're right: that should be "factorial" not faculty (I just took a chance with a direct Norwegian-English translation. Some day I'll learn that that's hardly ever a good idea). > >Did you know that ... the sentence "how on earth can this function > >ever be useful to anyone?" can be recombined in as much as > >1.898648171e+55 different ways? > Hmmmmmm i must be counting it wrong.... i get > 55 letters(spaces included) and factorial 55 is > 1.269640335366e+73 Now try dividing that with the product of the factorials of the numbers of all equal elements. Would you say that the word LEE is an interesting acronym of the name LEE, just because the two E's has swapped places? > besides... only a few hundred.. meybe a few thousnad.. > will be understandable. Good point, Grape. One could create a function that found all the combinations that produced only english words (using the word list in Junko's spellchecker for instance), but even with a short sentence, like the one I used with 55 letters, one would have to spell-check an awful amount of possible sentences, and given the fact that a human STILL would have to go through all those correctly spelled sentences to see whether they 1) actually meant something (if that's a point), most of them would probably prove surrealistic, 2) that the grammer was correct (not much of a chance). Finally it would STILL be a completely useless routine; who would ever want to code it? More of those Best Regards, Tor Gausen