Click here to Skip to main content
15,895,283 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionAlgorithm or not? [modified] Pin
MNoordam6-Oct-08 3:46
MNoordam6-Oct-08 3:46 
AnswerRe: Algorithm or not? Pin
Alan Balkany7-Oct-08 8:28
Alan Balkany7-Oct-08 8:28 
GeneralRe: Algorithm or not? Pin
MNoordam7-Oct-08 10:30
MNoordam7-Oct-08 10:30 
GeneralRe: Algorithm or not? Pin
Alan Balkany8-Oct-08 7:24
Alan Balkany8-Oct-08 7:24 
GeneralRe: Algorithm or not? Pin
MNoordam8-Oct-08 8:54
MNoordam8-Oct-08 8:54 
GeneralRe: Algorithm or not? Pin
MNoordam16-Oct-08 1:15
MNoordam16-Oct-08 1:15 
GeneralRe: Algorithm or not? Pin
Alan Balkany16-Oct-08 3:19
Alan Balkany16-Oct-08 3:19 
GeneralRe: Algorithm or not? [modified] Pin
MNoordam16-Oct-08 3:41
MNoordam16-Oct-08 3:41 
That's what crossed my mind as well... but I think that method can't be combined with the 'rolling-table'. Beneath my interpretation of your idea.

The initial setup could be a full match, like so:
Hair color
Brown   Blond
1 2 3   7  8  9
4 5 6  10 11 12

1,2,3,4,5,6 = brown hair
7,8,9,10,11,12 = blond hair
Rotate()

Hair color
Brown   Blond
1 3 7   8  9 12
2 4 5   6 10 11

As soon as the table rotates it's values, 7 and 6 start matching with incorrect participants. The number of faulty matches will increase with each rotate.
And how do I match participants on eye-color, as I have already sorted them on hair color.

---------------
Currently I've assigned a rolling table to each hair color
After the rotate(s), everything looks fine.
Hair color
Brown   Blond
1 3 6   8  9 12
2 4 5   7 10 11


Brown = rotating table
Blond = rotating table

This method works for the first couple of rounds. Until the participants have to be re-sorted. Doing that will override the roilling-table logic and participants will meet eachother twice, never or none (empty place)

Eye color
Brown    Blue
4  6  7  1 2  3
8 10 12  5 9 11


1,2,3 and 5 have already met during the haircolor match. They will meet eachother again during the eye-color matching rounds.

Even if the eye-color match would work.
Last rounds everybody should meet eachother who have not seen the other yet.

** it's making me nuts! **
*sigh*

P.S. I REALLY appreciate your input!

modified on Thursday, October 16, 2008 10:04 AM

GeneralRe: Algorithm or not? Pin
Alan Balkany17-Oct-08 3:54
Alan Balkany17-Oct-08 3:54 
QuestionMonte carlo Rabin_Karp Search Pin
Angelinna2-Oct-08 14:17
Angelinna2-Oct-08 14:17 
AnswerRe: Monte carlo Rabin_Karp Search Pin
Robert.C.Cartaino2-Oct-08 16:23
Robert.C.Cartaino2-Oct-08 16:23 
GeneralRe: Monte carlo Rabin_Karp Search Pin
Angelinna2-Oct-08 17:07
Angelinna2-Oct-08 17:07 
GeneralSign of the times... PinPopular
CPallini2-Oct-08 21:52
mveCPallini2-Oct-08 21:52 
GeneralRe: Monte carlo Rabin_Karp Search Pin
Paul Conrad3-Oct-08 6:28
professionalPaul Conrad3-Oct-08 6:28 
GeneralRe: Monte carlo Rabin_Karp Search Pin
Tim Craig3-Oct-08 18:34
Tim Craig3-Oct-08 18:34 
GeneralArray Rearrangement trick [modified] Pin
abhigad1-Oct-08 9:53
abhigad1-Oct-08 9:53 
GeneralRe: Array Rearrangement trick Pin
CPallini1-Oct-08 10:16
mveCPallini1-Oct-08 10:16 
GeneralRe: Array Rearrangement trick Pin
Alan Balkany2-Oct-08 3:42
Alan Balkany2-Oct-08 3:42 
GeneralRe: Array Rearrangement trick Pin
Mark Churchill2-Oct-08 5:16
Mark Churchill2-Oct-08 5:16 
QuestionDigit combination string [modified] Pin
z33z30-Sep-08 21:25
z33z30-Sep-08 21:25 
QuestionExternal sorting: Which algorithm to select Pin
lizardking3d29-Sep-08 1:45
lizardking3d29-Sep-08 1:45 
AnswerRe: External sorting: Which algorithm to select Pin
Alan Balkany1-Oct-08 3:36
Alan Balkany1-Oct-08 3:36 
GeneralRe: External sorting: Which algorithm to select Pin
lizardking3d5-Oct-08 20:48
lizardking3d5-Oct-08 20:48 
GeneralRe: External sorting: Which algorithm to select Pin
Alan Balkany6-Oct-08 3:29
Alan Balkany6-Oct-08 3:29 
GeneralRe: External sorting: Which algorithm to select Pin
lizardking3d6-Oct-08 4:08
lizardking3d6-Oct-08 4:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.