Click here to Skip to main content
15,347,008 members
Home / Discussions / Algorithms
   

Algorithms

 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder28-Jul-09 2:32
cofounderChris Maunder28-Jul-09 2:32 
PinnedHow to get an answer to your question PinPopular
Chris Maunder16-Mar-09 10:13
cofounderChris Maunder16-Mar-09 10:13 
GeneralWhere To Begin - Excel Manipulation Pin
(Mike) ipscone 19-May-22 12:14
Member(Mike) ipscone 19-May-22 12:14 
GeneralRe: Where To Begin - Excel Manipulation Pin
Richard MacCutchan19-May-22 20:53
mveRichard MacCutchan19-May-22 20:53 
GeneralRe: Where To Begin - Excel Manipulation Pin
(Mike) ipscone 20-May-22 5:22
Member(Mike) ipscone 20-May-22 5:22 
GeneralRe: Where To Begin - Excel Manipulation Pin
Richard MacCutchan20-May-22 5:35
mveRichard MacCutchan20-May-22 5:35 
GeneralRe: Where To Begin - Excel Manipulation Pin
(Mike) ipscone 20-May-22 10:38
Member(Mike) ipscone 20-May-22 10:38 
GeneralRe: Where To Begin - Excel Manipulation Pin
Gerry Schmitz20-May-22 5:18
mveGerry Schmitz20-May-22 5:18 
GeneralRe: Where To Begin - Excel Manipulation Pin
(Mike) ipscone 20-May-22 5:39
Member(Mike) ipscone 20-May-22 5:39 
GeneralRe: Where To Begin - Excel Manipulation Pin
Richard MacCutchan20-May-22 6:09
mveRichard MacCutchan20-May-22 6:09 
GeneralRe: Where To Begin - Excel Manipulation Pin
(Mike) ipscone 20-May-22 6:52
Member(Mike) ipscone 20-May-22 6:52 
GeneralRe: Where To Begin - Excel Manipulation Pin
Gerry Schmitz21-May-22 5:30
mveGerry Schmitz21-May-22 5:30 
QuestionCreating paths in a 2D array Pin
Member 1561542626-Apr-22 1:18
MemberMember 1561542626-Apr-22 1:18 
AnswerRe: Creating paths in a 2D array Pin
Randor 26-Apr-22 17:48
professional Randor 26-Apr-22 17:48 
QuestionVirtual sports algorithms. How it works? Pin
Cryptocurrency3-Apr-22 19:45
MemberCryptocurrency3-Apr-22 19:45 
AnswerRe: Virtual sports algorithms. How it works? Pin
Gerry Schmitz26-Apr-22 6:00
mveGerry Schmitz26-Apr-22 6:00 
QuestionMethods for Solving different forms of Recurrence Relations Pin
Dawood Ahmad 20213-Apr-22 10:46
MemberDawood Ahmad 20213-Apr-22 10:46 
AnswerRe: Methods for Solving different forms of Recurrence Relations Pin
Randor 26-Apr-22 18:06
professional Randor 26-Apr-22 18:06 
QuestionHelp with allocation algorithm Pin
Cynthia Moore30-Mar-22 23:53
MemberCynthia Moore30-Mar-22 23:53 
AnswerRe: Help with allocation algorithm Pin
Member 146609423-May-22 4:01
MemberMember 146609423-May-22 4:01 
1 - I would make people prioritize the records they want - only 1 number, let's say, from 1 to 100.
2 - They would then choose the records they want, in the rank they want. Not allowed to repeat numbers.

With that information, I would assign a priority value for each ranking, the higher the priority (1 is highest), the higher this number is. The balancing of these values is going to be a big part on your "justice".

I would do a cumulative priority number, and upon collision, the person that asked first for the record would get it.

Let's review this, in a slower way:
Let's say you use 1 => 400, 2 => 200, 3 => 100, 4 => 80, 5 => 70, 6 => 60

Now we have the first choice round. Everyone gets 400 priority points. Let's say 5 people.
But there is a collision. 2 people chose MC Hammer record.
The one that asked for it before is going to get it. The other one... well, tough luck.
Now, we have the second choice round. Everyone gets 200 priority points.
But, the "un-hamnmered" guy now has 600 priority points. Whatever he chose for choice 2, if available, is going to get picked.
After that, everyone else can get their choice of number 2, if available.

Just repeat until no more records. This should be a fairly fair system - everyone is probably going to be equally pissed... lol... You are seriously underestimating human beings' capacity for being petty - I hope all goes well, but I really think you're going to have some headache.
QuestionVery smart pointers Pin
Andy Oct202121-Mar-22 9:24
MemberAndy Oct202121-Mar-22 9:24 
AnswerRe: Very smart pointers Pin
Greg Utas26-Mar-22 10:14
mveGreg Utas26-Mar-22 10:14 
AnswerRe: Very smart pointers Pin
Member 146609423-May-22 4:13
MemberMember 146609423-May-22 4:13 
GeneralRe: Very smart pointers Pin
Andy Oct20213-May-22 22:21
MemberAndy Oct20213-May-22 22:21 
QuestionMaximum Sum of Value of Positions Along a Path Pin
Jj2093884218-Mar-22 13:30
MemberJj2093884218-Mar-22 13:30 

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.