Click here to Skip to main content
15,891,943 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: installshield Pin
R. Erasmus24-Mar-11 21:21
R. Erasmus24-Mar-11 21:21 
QuestionStuck on an a* pathfinding algorithm [modified] Pin
venomation3-Jan-11 17:21
venomation3-Jan-11 17:21 
AnswerRe: Stuck on an a* pathfinding algorithm Pin
Espen Harlinn4-Jan-11 0:46
professionalEspen Harlinn4-Jan-11 0:46 
GeneralRe: Stuck on an a* pathfinding algorithm Pin
venomation4-Jan-11 7:44
venomation4-Jan-11 7:44 
GeneralRe: Stuck on an a* pathfinding algorithm Pin
Espen Harlinn4-Jan-11 8:27
professionalEspen Harlinn4-Jan-11 8:27 
AnswerRe: Stuck on an a* pathfinding algorithm Pin
ely_bob10-Jan-11 9:55
professionalely_bob10-Jan-11 9:55 
QuestionI'm Looking For An Algorithm To Optimize Keno Selections Pin
Roger Wright20-Dec-10 15:23
professionalRoger Wright20-Dec-10 15:23 
AnswerRe: I'm Looking For An Algorithm To Optimize Keno Selections Pin
GlobX20-Dec-10 16:07
GlobX20-Dec-10 16:07 
DISCLAIMER: This could be totally wrong...

Ok, so I start by saying there are 80 squares - 20 of which are picked each round. Intuition says now:

20/80 = 1/4 = 25%


A colleague said "It's not that simple, because not ALL the 80 are picked each round." I justified my answer by saying replace this with a coin, there are two possible outcomes. If you flip it once, not ALL the outcomes are going to be achieved, but it's still a 50% chance (statistically speaking, none of this "the Queen's head is heavier BS").

Anyway, back on track, this would mean that for each individual number on the board, there is a 25% chance it will be picked in a given round. Therefore, for the three numbers YOU selected to ALL come up:

(if you say 'and' it means multiply, 'or' is addition (off the odds))
for outcomes: N1 and N2 and N3
prob = prob(N1) x prob(N2) x prob(N3)
     = (1/4) ^ 3
     = 1/64


So, to generalise this, as no two numbers have different probabilities:

for outcomes: N1, N2 ... Nz
prob = prob(N1) x prob(N2) x ... x prob(Nz)
     = (1/4) ^ z
     = 1/ (4 ^ z)


So, for any selection of Keno numbers of length z, the probability of getting all of these is:

1 / (4 ^ z)


For more complex things like "if I pick 10 numbers, what's the chance of getting 8 of them" look up Permutations and Combinations - I cannot for the life of me remember the details, I just know one is concerned with the order of the outcomes and the other is not.

Anyway, statisticians, am I even close???
GeneralRe: I'm Looking For An Algorithm To Optimize Keno Selections Pin
Roger Wright20-Dec-10 16:48
professionalRoger Wright20-Dec-10 16:48 
GeneralRe: I'm Looking For An Algorithm To Optimize Keno Selections Pin
GlobX20-Dec-10 16:58
GlobX20-Dec-10 16:58 
GeneralRe: I'm Looking For An Algorithm To Optimize Keno Selections Pin
Roger Wright20-Dec-10 17:53
professionalRoger Wright20-Dec-10 17:53 
AnswerRe: I'm Looking For An Algorithm To Optimize Keno Selections Pin
Luc Pattyn20-Dec-10 16:58
sitebuilderLuc Pattyn20-Dec-10 16:58 
GeneralRe: I'm Looking For An Algorithm To Optimize Keno Selections Pin
Roger Wright20-Dec-10 17:51
professionalRoger Wright20-Dec-10 17:51 
GeneralRe: I'm Looking For An Algorithm To Optimize Keno Selections Pin
GlobX20-Dec-10 19:30
GlobX20-Dec-10 19:30 
GeneralRe: I'm Looking For An Algorithm To Optimize Keno Selections Pin
Roger Wright22-Dec-10 4:03
professionalRoger Wright22-Dec-10 4:03 
GeneralRe: I'm Looking For An Algorithm To Optimize Keno Selections Pin
agolddog23-Dec-10 4:06
agolddog23-Dec-10 4:06 
GeneralRe: I'm Looking For An Algorithm To Optimize Keno Selections Pin
Roger Wright23-Dec-10 5:05
professionalRoger Wright23-Dec-10 5:05 
GeneralRe: I'm Looking For An Algorithm To Optimize Keno Selections Pin
Luc Pattyn23-Dec-10 5:39
sitebuilderLuc Pattyn23-Dec-10 5:39 
GeneralRe: I'm Looking For An Algorithm To Optimize Keno Selections Pin
jschell23-Dec-10 8:25
jschell23-Dec-10 8:25 
GeneralRe: I'm Looking For An Algorithm To Optimize Keno Selections Pin
musefan22-Dec-10 4:36
musefan22-Dec-10 4:36 
AnswerRe: I'm Looking For An Algorithm To Optimize Keno Selections Pin
cp987620-Dec-10 18:52
cp987620-Dec-10 18:52 
GeneralRe: I'm Looking For An Algorithm To Optimize Keno Selections Pin
musefan22-Dec-10 4:34
musefan22-Dec-10 4:34 
GeneralRe: I'm Looking For An Algorithm To Optimize Keno Selections Pin
Luc Pattyn22-Dec-10 4:47
sitebuilderLuc Pattyn22-Dec-10 4:47 
GeneralRe: I'm Looking For An Algorithm To Optimize Keno Selections Pin
Kirk Wood24-Dec-10 4:29
Kirk Wood24-Dec-10 4:29 
GeneralRe: I'm Looking For An Algorithm To Optimize Keno Selections Pin
Roger Wright3-Jan-11 18:37
professionalRoger Wright3-Jan-11 18:37 

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.