[PLUG] Seeking Algorithm
Rich Shepard
rshepard at appl-ecosys.com
Mon Apr 4 13:30:00 UTC 2005
I need an algorithm (or as expressed in python, perl, bash, whatever) to
generate all pairs of items from a list. In other words, if I have a list of
items, A ... B ... C ... D ... E, etc., I would like to automatically
generate the pairs AB, AC, AD, AE, BC, BD, BE, .... Permutations don't
matter, only the combinations.
Can someone point me to a solution?
Thanks,
Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
More information about the PLUG
mailing list