Click here to Skip to main content
15,877,757 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionC# Pin
Member 153810723-Oct-21 21:36
Member 153810723-Oct-21 21:36 
AnswerRe: C# Pin
Richard MacCutchan3-Oct-21 21:49
mveRichard MacCutchan3-Oct-21 21:49 
QuestionFunction of algorithm Pin
danindya1-Sep-21 15:52
professionaldanindya1-Sep-21 15:52 
AnswerRe: Function of algorithm - Spammer Pin
Dave Kreskowiak1-Sep-21 16:23
mveDave Kreskowiak1-Sep-21 16:23 
QuestionHelp with allocation algorithm Pin
Cynthia Moore24-Aug-21 19:43
Cynthia Moore24-Aug-21 19:43 
AnswerRe: Help with allocation algorithm Pin
Gerry Schmitz25-Aug-21 18:49
mveGerry Schmitz25-Aug-21 18:49 
GeneralRe: Help with allocation algorithm Pin
Cynthia Moore25-Aug-21 19:42
Cynthia Moore25-Aug-21 19:42 
GeneralRe: Help with allocation algorithm Pin
Gerry Schmitz26-Aug-21 4:37
mveGerry Schmitz26-Aug-21 4:37 
I "seriously" thought you were saying you could program.

The "draw" is simply iterating through the list of items (a "for" loop); and then executing a "RAND" function if there are takers.

The "logistics" of "having takers available" has nothing to do with the "drawing program" and any "list" you may produce saying who got what.

It would take less than a second for 700 items.

You said:

1) You "have the items in a database". Don't you know how to read them? (Part 1)
2) They "indicate their choices" which you "merge, blah blah" (Part 2)
3) Rnd Function - Access

Your (output) list could even have a "second choice" if the winner did not show up to claim their prize. Yes, they claim them; you don't chase them down or wait for them after you "publish" the list of winners. You do intend to create a winner's list? Or is this word of mouth?

Oh ... and you don't "give" them a number; you "assign" it as you "merge them" (or whatever). You need a name, you assign a number that you can later randomly generate. I suggest 1,2,3,4, ... # of takers for "that" item.

If you knew anything about "indexes" (relative or otherwise), you wouldn't even need to assign a "physical" number; it would be based on "position"; assuming an unordered list.

Note, nowhere is there any extra "draw" time.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food


modified 26-Aug-21 10:53am.

GeneralRe: Help with allocation algorithm Pin
Cynthia Moore26-Aug-21 7:16
Cynthia Moore26-Aug-21 7:16 
AnswerRe: Help with allocation algorithm Pin
BillWoodruff28-Aug-21 16:09
professionalBillWoodruff28-Aug-21 16:09 
QuestionWhich is the more preferred approach for novice coders, depth first search, or, breadth first search? Pin
the prestige city23-Jul-21 1:23
professionalthe prestige city23-Jul-21 1:23 
AnswerRe: Which is the more preferred approach for novice coders, depth first search, or, breadth first search? Pin
Gerry Schmitz24-Jul-21 7:15
mveGerry Schmitz24-Jul-21 7:15 
AnswerRe: Which is the more preferred approach for novice coders, depth first search, or, breadth first search? Pin
David Camp5-Oct-22 14:51
David Camp5-Oct-22 14:51 
AnswerRe: Which is the more preferred approach for novice coders, depth first search, or, breadth first search? Pin
prestige primrose hills phase 210-Nov-22 22:21
professionalprestige primrose hills phase 210-Nov-22 22:21 
AnswerRe: Which is the more preferred approach for novice coders, depth first search, or, breadth first search? Pin
Provident Ecopolitan Bagalur20-Jul-23 21:09
Provident Ecopolitan Bagalur20-Jul-23 21:09 
QuestionFind cartesians for matrix elements Pin
Member 1528858613-Jul-21 19:38
Member 1528858613-Jul-21 19:38 
QuestionGuess A Word If Number Of Character Matches Are Given Pin
Member 1525570320-Jun-21 20:54
Member 1525570320-Jun-21 20:54 
AnswerRe: Guess A Word If Number Of Character Matches Are Given Pin
OriginalGriff20-Jun-21 21:01
mveOriginalGriff20-Jun-21 21:01 
QuestionWhat are the in-order and post-order traversals of the following tree? Pin
priyamtheone20-May-21 5:02
priyamtheone20-May-21 5:02 
AnswerRe: What are the in-order and post-order traversals of the following tree? Pin
harold aptroot20-May-21 7:08
harold aptroot20-May-21 7:08 
GeneralRe: What are the in-order and post-order traversals of the following tree? Pin
priyamtheone20-May-21 9:37
priyamtheone20-May-21 9:37 
GeneralRe: What are the in-order and post-order traversals of the following tree? Pin
harold aptroot20-May-21 9:48
harold aptroot20-May-21 9:48 
QuestionAlgorithm to rank items lower if they already appear higher in another category Pin
Member 117824613-Mar-21 19:41
Member 117824613-Mar-21 19:41 
AnswerRe: Algorithm to rank items lower if they already appear higher in another category Pin
Ralf Meier9-Mar-21 5:55
mveRalf Meier9-Mar-21 5:55 
QuestionSaving Hierarchical (Treeview) object Iteratively with parent and child in C# Pin
Md NasirUddin24-Feb-21 5:35
Md NasirUddin24-Feb-21 5:35 

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.