English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

They all have to be paired and the people cannot be matched up with the same person twice. Is someone able to create an algorithm for this? Online or executable would be great! (Or if anyone knows of an existing program that will do this and where I can download it?)

2007-08-11 18:05:05 · 4 answers · asked by Anonymous in Science & Mathematics Mathematics

They all have to be paired and the people cannot be matched up with the same person twice. Is someone able to create an algorithm for this? Online or executable would be great! (Or if anyone knows of an existing program that will do this and where I can download it?)

In fact in this case the number of people is 14. It seems that it is actually impossible to do this when the number of people is not a multiple of four - is it solvable?

2007-08-11 19:53:23 · update #1

Sorry... I wasn't clear enough... I need 14 arrangements so that no two people are ever paired with the same person twice. I think this is impossible.

2007-08-13 15:27:01 · update #2

4 answers

Normally, math types would say:
There are 14 choices for the 1st member of any pair
There are 13 choices for the 2nd member.
The total possible # of choices is 14 times 13 = 182

It sounds like you have some other constraint, but you're not telling us what it is.

2007-08-11 23:58:28 · answer #1 · answered by CB 2 · 1 0

The problem is solvable whether or not the number of members in the group is a multiple of 4. As CD indicates, if there are n members in the group, there are n choices for the first and n - 1 choices for the second, so n*(n-1) . This is the number of ways to choose 2 if you count the pair (a,b) as different from (b,a). Without regard to order, there are
n*(n - 1)/2 ways.

2007-08-13 12:41:20 · answer #2 · answered by Tony 7 · 1 0

Let's represent each person from A to N, that's 14 in all.

Lets pair them this way that each may be paired 13 times.
AB, AC, AD, AE, AF, AG, AH, AI, AJ, AK, AL, AM, AN
BC, BD, BE, BF, BG, BH, BI, BJ, BK, BL, BM, BN
CD, CE, CF, CG, CH, CI, CJ, CK, CL, CM, CN
DE, DF, DG, DH, DI, DJ, DK, DL, DM, DN
EF, EF, EH, EI, EJ, EK, EL, EM, EN
FG, FH, FI, FJ, FK, FL, FM, FN
GH, GI, GJ, GK, GL, GM, GN
HI, HJ, HK, HL, HM, HN
IJ, IK, IL, IM, IN
JK, JL, JM, JN
KL, KM, KN
LM, LN
MN

See if this is what you mean. If we can do it manually at least you may have an idea how to automate it. You may check by making a tally board that each of them is paired 13 times without repetition in any pairings.

2007-08-17 08:32:20 · answer #3 · answered by Jun Agruda 7 · 4 0

if you have 14 people then the answer is 14 x 14 = 196.

2007-08-20 00:55:06 · answer #4 · answered by leeterboy 1 · 0 0

fedest.com, questions and answers