Click here to Skip to main content
15,887,350 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: analysis of boolean table to optimize code ? Pin
Gerry Schmitz3-Nov-15 8:28
mveGerry Schmitz3-Nov-15 8:28 
AnswerRe: analysis of boolean table to optimize code ? Pin
Patrice T3-Nov-15 17:09
mvePatrice T3-Nov-15 17:09 
Questiongrid search Pin
Member 1208345324-Oct-15 0:21
Member 1208345324-Oct-15 0:21 
AnswerRe: grid search Pin
Patrice T24-Oct-15 22:12
mvePatrice T24-Oct-15 22:12 
AnswerRe: grid search Pin
Richard MacCutchan24-Oct-15 22:48
mveRichard MacCutchan24-Oct-15 22:48 
AnswerRe: grid search Pin
BillWoodruff30-Oct-15 23:10
professionalBillWoodruff30-Oct-15 23:10 
QuestionA max profit question Pin
JStagg14-Oct-15 23:15
JStagg14-Oct-15 23:15 
AnswerRe: A max profit question Pin
Eddy Vluggen20-Oct-15 7:39
professionalEddy Vluggen20-Oct-15 7:39 
As a gamer, I'd ask myself what the optimal buying/selling moment is, and would try a naive approach in finding it. That means, look at what day today is, and see if selling today has an advantage over tomorrow, if tomorrow is a valid selling day. That prolly means coming up with a way to get a "score" for each day and calculating it. Can you express a MP in coins-value? If yes, then you could calculate the items "coins value for a given day".

It does sound a bit strange that I can keep the item longer than the store is opened, or that the store only sells a single item per day.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

QuestionHow can I found max of multiplication of subtree nodes? Pin
mortalphilosopher11-Oct-15 19:56
mortalphilosopher11-Oct-15 19:56 
GeneralRe: How can I found max of multiplication of subtree nodes? Pin
harold aptroot11-Oct-15 21:54
harold aptroot11-Oct-15 21:54 
AnswerRe: How can I found max of multiplication of subtree nodes? Pin
Patrice T13-Oct-15 10:09
mvePatrice T13-Oct-15 10:09 
GeneralRe: How can I found max of multiplication of subtree nodes? Pin
mortalphilosopher13-Oct-15 23:28
mortalphilosopher13-Oct-15 23:28 
GeneralRe: How can I found max of multiplication of subtree nodes? Pin
Matt T Heffron14-Oct-15 8:09
professionalMatt T Heffron14-Oct-15 8:09 
QuestionData selection and classification algorithms Pin
Member 120412687-Oct-15 13:15
Member 120412687-Oct-15 13:15 
SuggestionRe: Data selection and classification algorithms Pin
Matt T Heffron7-Oct-15 14:29
professionalMatt T Heffron7-Oct-15 14:29 
GeneralRe: Data selection and classification algorithms Pin
Member 120412687-Oct-15 16:55
Member 120412687-Oct-15 16:55 
QuestionHow you gonna start with this question? Pin
lebanner6-Oct-15 14:52
lebanner6-Oct-15 14:52 
AnswerRe: How you gonna start with this question? Pin
Afzaal Ahmad Zeeshan6-Oct-15 22:14
professionalAfzaal Ahmad Zeeshan6-Oct-15 22:14 
AnswerRe: How you gonna start with this question? Pin
Sreram K8-Oct-15 7:17
Sreram K8-Oct-15 7:17 
AnswerRe: How you gonna start with this question? Pin
Patrice T8-Oct-15 11:47
mvePatrice T8-Oct-15 11:47 
GeneralRe: How you gonna start with this question? Pin
Matt T Heffron8-Oct-15 14:23
professionalMatt T Heffron8-Oct-15 14:23 
GeneralRe: How you gonna start with this question? Pin
Stanley_B70716-Oct-15 5:18
Stanley_B70716-Oct-15 5:18 
AnswerRe: How you gonna start with this question? Pin
Matt T Heffron20-Oct-15 7:05
professionalMatt T Heffron20-Oct-15 7:05 
QuestionWhy is Dijkstra's algorithm implemented with a priority queue O(|E| + |v|log|V|)? Shouldn't it be O(|V|^2)? Pin
Sreram K5-Oct-15 4:45
Sreram K5-Oct-15 4:45 
AnswerRe: Why is Dijkstra's algorithm implemented with a priority queue O(|E| + |v|log|V|)? Shouldn't it be O(|V|^2)? Pin
Sreram K8-Oct-15 7:32
Sreram K8-Oct-15 7:32 

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.