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

Algorithms

 
AnswerRe: find shortest root in maze using recursion Pin
Kornfeld Eliyahu Peter27-Jan-14 8:10
professionalKornfeld Eliyahu Peter27-Jan-14 8:10 
QuestionRe: find shortest root in maze using recursion Pin
thatraja27-Jan-14 14:16
professionalthatraja27-Jan-14 14:16 
Questionpattern/string matching algorithm Pin
asdf2321122-Jan-14 22:42
asdf2321122-Jan-14 22:42 
QuestionOptimizing connectivity queries in a Directed Acyclic Graph Pin
ssuryakumar8915-Jan-14 17:55
ssuryakumar8915-Jan-14 17:55 
SuggestionBuilding dual axis solar tracking algorithm Pin
Member 105152259-Jan-14 20:14
professionalMember 105152259-Jan-14 20:14 
Questiondynamic activity selection Pin
Member 1040514815-Nov-13 21:11
Member 1040514815-Nov-13 21:11 
AnswerRe: dynamic activity selection Pin
Alan Balkany27-Nov-13 5:26
Alan Balkany27-Nov-13 5:26 
AnswerRe: dynamic activity selection Pin
jschell28-Nov-13 7:10
jschell28-Nov-13 7:10 
Presumably you are picking the best solution based on the final weight score.

And presumably you have an idea of what "more" means.

Then while spanning the graph you keep track of a count for long and short. Then at the end you provide an additional weight value based on the "more" calculation. So for example if you just need to do 'short > long' for the comparison then you might add a weight of '5' to the total if that is true. Or if you need to do a difference between long and short then you would multiple that difference by '5' and add it to the score. For that latter solution you should consider if you want to deal with a negative difference or not.
QuestionNeed help with this Pseudocode Pin
B-Sho10-Nov-13 7:23
B-Sho10-Nov-13 7:23 
AnswerRe: Need help with this Pseudocode Pin
Richard Andrew x6410-Nov-13 9:38
professionalRichard Andrew x6410-Nov-13 9:38 
GeneralRe: Need help with this Pseudocode Pin
B-Sho10-Nov-13 12:14
B-Sho10-Nov-13 12:14 
AnswerRe: Need help with this Pseudocode Pin
Richard Andrew x6410-Nov-13 12:23
professionalRichard Andrew x6410-Nov-13 12:23 
AnswerRe: Need help with this Pseudocode Pin
BillWoodruff10-Nov-13 15:54
professionalBillWoodruff10-Nov-13 15:54 
AnswerRe: Need help with this Pseudocode Pin
Kornfeld Eliyahu Peter10-Nov-13 19:28
professionalKornfeld Eliyahu Peter10-Nov-13 19:28 
GeneralRe: Need help with this Pseudocode Pin
B-Sho11-Nov-13 8:09
B-Sho11-Nov-13 8:09 
AnswerRe: Need help with this Pseudocode Pin
Richard Andrew x6411-Nov-13 11:56
professionalRichard Andrew x6411-Nov-13 11:56 
GeneralRe: Need help with this Pseudocode Pin
Kornfeld Eliyahu Peter11-Nov-13 19:12
professionalKornfeld Eliyahu Peter11-Nov-13 19:12 
GeneralRe: Need help with this Pseudocode Pin
Richard MacCutchan11-Nov-13 22:35
mveRichard MacCutchan11-Nov-13 22:35 
QuestionAn HTML5 platform to animate algorithms Pin
babakin7-Nov-13 8:31
babakin7-Nov-13 8:31 
GeneralRe: An HTML5 platform to animate algorithms Pin
harold aptroot7-Nov-13 8:44
harold aptroot7-Nov-13 8:44 
GeneralRe: An HTML5 platform to animate algorithms Pin
babakin8-Nov-13 11:11
babakin8-Nov-13 11:11 
GeneralRe: An HTML5 platform to animate algorithms Pin
Kornfeld Eliyahu Peter7-Nov-13 9:20
professionalKornfeld Eliyahu Peter7-Nov-13 9:20 
GeneralRe: An HTML5 platform to animate algorithms Pin
babakin8-Nov-13 11:12
babakin8-Nov-13 11:12 
GeneralRe: An HTML5 platform to animate algorithms Pin
Gopi Kishan Mariyala2-Dec-13 0:09
Gopi Kishan Mariyala2-Dec-13 0:09 
GeneralRe: An HTML5 platform to animate algorithms Pin
babakin3-Dec-13 11:59
babakin3-Dec-13 11:59 

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.