Click here to Skip to main content
16,003,474 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Pattern Decoder Pin
Roger Wright26-Oct-08 19:28
professionalRoger Wright26-Oct-08 19:28 
GeneralRe: Pattern Decoder Pin
hdsouza127-Oct-08 1:44
hdsouza127-Oct-08 1:44 
GeneralRe: Pattern Decoder Pin
Roger Wright27-Oct-08 2:42
professionalRoger Wright27-Oct-08 2:42 
Questionunion and intersection Library Pin
mohammed zarqa12-Oct-08 3:14
mohammed zarqa12-Oct-08 3:14 
AnswerRe: union and intersection Library Pin
Mark Churchill12-Oct-08 4:15
Mark Churchill12-Oct-08 4:15 
AnswerRe: union and intersection Library Pin
Kevin McFarlane12-Oct-08 4:59
Kevin McFarlane12-Oct-08 4:59 
Questioncritical number [modified] Pin
jonig199-Oct-08 4:52
jonig199-Oct-08 4:52 
AnswerRe: critical number Pin
73Zeppelin9-Oct-08 5:47
73Zeppelin9-Oct-08 5:47 
GeneralRe: critical number Pin
Paul Conrad9-Oct-08 7:00
professionalPaul Conrad9-Oct-08 7:00 
GeneralRe: critical number Pin
jonig199-Oct-08 7:03
jonig199-Oct-08 7:03 
GeneralRe: critical number Pin
73Zeppelin9-Oct-08 9:43
73Zeppelin9-Oct-08 9:43 
GeneralRe: critical number Pin
Paul Conrad9-Oct-08 10:15
professionalPaul Conrad9-Oct-08 10:15 
GeneralRe: critical number [modified] Pin
73Zeppelin9-Oct-08 23:21
73Zeppelin9-Oct-08 23:21 
AnswerRe: critical number Pin
cp987610-Oct-08 2:26
cp987610-Oct-08 2:26 
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 
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 
The problem is starting to get interesting. For some participant sets there may be no perfect solution.

A characteristic of this problem is that good solutions to the whole problem will tend to be composed of good solutions to subproblems (e.g. with same-color participants matched during certain rounds). This characteristic suggests two promising approaches: 1. Dynamic Programming and 2. Genetic Algorithms.

Dynamic Programming builds up optimal solutions for small numbers of participants, combining them to construct optimal solutions for greater numbers of participants. Genetic Algorithms take a set of complete solutions, rank them, and combine the best ones to (hopefully) make better ones.

A third approach (which may be best if you can figure out how to implement it) is to take a decent solution, then transform it one step at a time to progressively better solutions. For example, order the participants so that matching colors mostly meet during the appropriate rounds. Then for the particpants that DON'T match during these rounds, swap partners so that they DO match. The challenge here is to make other corrections to compensate for this disruption to the paring system.

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.