Click here to Skip to main content
15,511,378 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionAlgorithm to rank items lower if they already appear higher in another category Pin
Member 117824613-Mar-21 20:41
Member 117824613-Mar-21 20:41 
AnswerRe: Algorithm to rank items lower if they already appear higher in another category Pin
Ralf Meier9-Mar-21 6:55
mveRalf Meier9-Mar-21 6:55 
QuestionSaving Hierarchical (Treeview) object Iteratively with parent and child in C# Pin
Md NasirUddin24-Feb-21 6:35
Md NasirUddin24-Feb-21 6:35 
AnswerRe: Saving Hierarchical (Treeview) object Iteratively with parent and child in C# Pin
Gerry Schmitz24-Feb-21 7:28
mveGerry Schmitz24-Feb-21 7:28 
QuestionDesign a brute force algorithm to count the number of inversions in an array, analyze the number of executions of its basic operation, and determine the efficiency class. Pin
Ilyas Idrees8-Feb-21 6:42
Ilyas Idrees8-Feb-21 6:42 
AnswerRe: Design a brute force algorithm to count the number of inversions in an array, analyze the number of executions of its basic operation, and determine the efficiency class. Pin
20212a24-Feb-21 8:22
20212a24-Feb-21 8:22 
AnswerRe: Design a brute force algorithm to count the number of inversions in an array, analyze the number of executions of its basic operation, and determine the efficiency class. Pin
Patrice T25-Feb-21 3:57
mvePatrice T25-Feb-21 3:57 
QuestionLooking for "card playing" algorithm Pin
David Crow4-Jan-21 10:30
David Crow4-Jan-21 10:30 
In a card game involving 2-4 computer players, does an algorithm exist for determining which of the player(s) has the highest card (e.g., 2 < 3 <...< K < A)? With two players, it's simply:
if (player1 > player2)
    player1 wins
else if (player2 > player1)
    player2 wins
else
    tie
But that does not scale well at all for 3 or 4 players. When I tried something for 3 players, it was ugly and nearly unmanageable. 4 players was not even attempted.

Thanks.
DC

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles


AnswerRe: Looking for "card playing" algorithm Pin
Ralf Meier4-Jan-21 10:43
mveRalf Meier4-Jan-21 10:43 
AnswerRe: Looking for "card playing" algorithm Pin
Peter_in_27804-Jan-21 12:15
professionalPeter_in_27804-Jan-21 12:15 
GeneralRe: Looking for "card playing" algorithm Pin
jsc426-Jan-21 5:33
professionaljsc426-Jan-21 5:33 
GeneralRe: Looking for "card playing" algorithm Pin
Peter_in_27806-Jan-21 13:46
professionalPeter_in_27806-Jan-21 13:46 
AnswerRe: Looking for "card playing" algorithm Pin
Gerry Schmitz5-Jan-21 4:27
mveGerry Schmitz5-Jan-21 4:27 
Questionformulate an algorithm Pin
Member 1502086714-Dec-20 7:59
Member 1502086714-Dec-20 7:59 
AnswerRe: formulate an algorithm Pin
Greg Utas14-Dec-20 8:31
mveGreg Utas14-Dec-20 8:31 
AnswerRe: formulate an algorithm Pin
Gerry Schmitz14-Dec-20 12:37
mveGerry Schmitz14-Dec-20 12:37 
AnswerRe: formulate an algorithm Pin
Patrice T14-Dec-20 13:38
mvePatrice T14-Dec-20 13:38 
AnswerRe: formulate an algorithm Pin
Member 1525570320-Jun-21 21:01
Member 1525570320-Jun-21 21:01 
QuestionProblem in c language Pin
Member 150165689-Dec-20 4:16
Member 150165689-Dec-20 4:16 
AnswerRe: Problem in c language Pin
Richard Deeming9-Dec-20 4:43
mveRichard Deeming9-Dec-20 4:43 
AnswerRe: Problem in c language Pin
CHill609-Dec-20 4:44
mveCHill609-Dec-20 4:44 
AnswerRe: Problem in c language Pin
Serhii Oleksenko15-May-21 2:38
professionalSerhii Oleksenko15-May-21 2:38 
QuestionStamp circular trade Pin
Shir Gans29-Nov-20 7:25
Shir Gans29-Nov-20 7:25 
AnswerRe: Stamp circular trade Pin
Gerry Schmitz29-Nov-20 19:40
mveGerry Schmitz29-Nov-20 19:40 
AnswerRe: Stamp circular trade Pin
Mircea Neacsu6-Dec-20 6:45
mvaMircea Neacsu6-Dec-20 6:45 

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.