Click here to Skip to main content
16,011,608 members
Home / Discussions / Algorithms
   

Algorithms

 
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 
GeneralRe: I'm Looking For An Algorithm To Optimize Keno Selections Pin
Roger Wright20-Dec-10 16:48
professionalRoger Wright20-Dec-10 16:48 
Well, you're close, but not all numbers have the same probability of coming up.

The first time you draw a number there is a 1/80 chance of it being a particular number. But the second time, the chance is 1/79, since the first number is not replaced.

I looked at it as the red ball/ black ball problem, where the number I picked are red balls. If I pick 10 numbers, then there are 10 red balls and 70 black balls. The probability of one of my numbers coming up ( order isn't important) on the first draw is then 10/80. The probability of of the second ball also being one of my numbers, given that the first was a good one, is 9/79, since I only have 9 numbers remaining in the bag, and a total of 79 balls altogether. So the total probability of the first two balls being ones I picked becomes (10/80)*(9/79). That's easy enough to calculate. But how do I calculate the probability of perhaps, the 2nd, 9th, 11th, 12th, and 17th ball being good ones? Even if I make this tedious calculation for all the possible draw/hit combinations and orders, how do I determine the total probability of any particular number of hits in all the different orders in which they may occur? That's where I get stumped!

I think this may need to enter the domain of set theory, and calculating the probability that n of my numbers will be in a set of 20 numbers drawn from a field of 80.

My reason is quite pragmatic. There are different payouts for each combination of numbers picked and number hit in a round. And each game has different payouts. And to make it more interesting, each casino nmay have different payouts for the same games. If I can figure the odds on each combination, then multiply each by the payout for each machine and casino, I can learn which combination is optimal for each game and casino. I know that none of them is going to be a paying proposition, but I see no reason not to optimize my chances on a game I'm going to play anyway. Big Grin | :-D
Will Rogers never met me.

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 
AnswerRe: I'm Looking For An Algorithm To Optimize Keno Selections Pin
trooper081423-Dec-10 20:28
trooper081423-Dec-10 20:28 

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.