Click here to Skip to main content
15,896,063 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionTwin Prime Conjecture Pin
Bassam Abdul-Baki8-Oct-08 3:01
professionalBassam Abdul-Baki8-Oct-08 3:01 
AnswerRe: Twin Prime Conjecture Pin
Kevin McFarlane12-Oct-08 5:03
Kevin McFarlane12-Oct-08 5:03 
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 
Help, I'm stuck again.
Your solution works like a charm. I've written a custom class with 2 Arrays and a rotate function. The rotate function shifts the value positions within the Arrays, except for position 1 in Array 1.

I'm walking into problems when I have certain criteria conditions per round(s).

For example:
Round 1-3, participants with the same hair-color have to meet. If there's no match assign random participant.
Round 4-6, participants with the same eye-color have to meet. If there's no match assign random participant.

I can fill in round 1-3... it's still a struggle though. For each matching hair-type I've created a 'rolling-table' and on the empty places I assign a random participant (from collection of non-matches). After all the rollingtables have finished, I make a rolling-table of the left-overs (non-match collection) and process them as well.

The problem is that I don't know how to continue. Some particpants could have matching hair-color as well as eye color. How do avoid fall-out because of double matching?
When P1 and P2 have brown hair and grey eyes, the could have met during round 1-3, If they did they should not meet again. But there're other Participants with grey-eyes that will have to meet with P1 and P2....

I'm thinking about this for the last couple of days and can't solve this. Much respect rewarded for solving this.

Thanks!
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 
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 PinPopular
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 

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.