-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bill said:
Before I can come up with 1/2 or even 1/4 of the code I need to see all
permutations of a word I need to know what I'm asking. Which of these would
correctly be all the permutations of the word tax?
tax
axt
xta
-- or
tax
axa
xat
or something else?
Bill
Neither of them. The standard definition of a permutation essentially
comes down to every arrangement of the order of each character, of which
there are 3! (because there are three letters).
tax
txa
xat
xta
atx
axt
As you might notice, a common way of teaching this in elementary
combinatorics courses is putting it in the context of anagrams.
- --
- --Falcon Darkstar Christopher Momot
- --
- --OpenPGP: (7902:4457) 9282:A431
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iQIcBAEBAgAGBQJJ7TS+AAoJEKmxP9YxEE4rwhEP/RO13o9CnUBiUOt1aOcZz3HU
rpG8XSJcBFy00/fyrMBxH7EgO8Wzm7tted6gTWK3Duxt7WvTLS9dLufeku1XKWap
kKwATfbhcobkyPKLOrxZIMPGR5Sx2bxTuXa2W4CXEy9Uj2sG3w0EDIf2P6TelRgy
G52IdOdEMiB31TjoYwQ2QIXTyJQji8hG/qRcKOnodJe0f6h3B5fCwaGjFWyMfthH
vNE2g/wQjRFS+W87mKrjFujOu64zIrRyqBdsNVXtk8TYG9piITpFc7xuftOfH4dq
5QsmPsJ/ZL7zrN4OdnESpT7iq1FfzK780XQ/OZ+s2A49z45WWNR0zKfLuMnt/bVS
7oeX43iLABWp5y0G0TwY7vtUU61/pB5SJITVgu4VaAeKCOBA/AdsKX7onZRjnmUZ
NMpT9XaydWfrNzKIGVKOEXntQZptfzOB8jxd8r0Y19Bne4cvB7cRR3uNTAzRr0cY
RKPZj73ckDJut/3BB0xaG9gl4QLXGjvcmGB0H0oqrQbuczEPeCmEj51+oyFcX/6n
Zqb7CNF8J7x2rdOX49drdxm642D7D2fJ1kfZpW+x4nZjTICfRgOQ1v5kLYYblyA1
oJVf0qzB0pRnnCDvVdu0E9bOU0IAFve4N3bkaFiotjsGAdR0CK6KKrM9/8BVMIJI
c9Mr4V0XtA4VsHDtR4+I
=aghY
-----END PGP SIGNATURE-----