Click here to Skip to main content
15,848,407 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Dynamic Programming / Greedy algorithm - Best time with constraints Pin
Member 1487381426-Jun-20 10:06
Member 1487381426-Jun-20 10:06 
GeneralRe: Dynamic Programming / Greedy algorithm - Best time with constraints Pin
harold aptroot26-Jun-20 10:27
harold aptroot26-Jun-20 10:27 
GeneralRe: Dynamic Programming / Greedy algorithm - Best time with constraints Pin
Member 1487381426-Jun-20 11:30
Member 1487381426-Jun-20 11:30 
GeneralRe: Dynamic Programming / Greedy algorithm - Best time with constraints Pin
harold aptroot26-Jun-20 12:05
harold aptroot26-Jun-20 12:05 
GeneralRe: Dynamic Programming / Greedy algorithm - Best time with constraints Pin
Member 1487381426-Jun-20 12:20
Member 1487381426-Jun-20 12:20 
GeneralRe: Dynamic Programming / Greedy algorithm - Best time with constraints Pin
harold aptroot26-Jun-20 12:56
harold aptroot26-Jun-20 12:56 
GeneralRe: Dynamic Programming / Greedy algorithm - Best time with constraints Pin
Member 1487381426-Jun-20 13:23
Member 1487381426-Jun-20 13:23 
GeneralRe: Dynamic Programming / Greedy algorithm - Best time with constraints Pin
harold aptroot26-Jun-20 13:33
harold aptroot26-Jun-20 13:33 
If the range was [25, 50] and 38 was picked as the midpoint and Algorithm1(38) is True, then the next range is [25, 38]. No problems, just updating the endpoint of the range. Taking the average of 25 and 38 ("divide by 2" is only what happens when the startpoint is zero) also does not cause a problem. Taking an average never "escapes" from the range.
GeneralRe: Dynamic Programming / Greedy algorithm - Best time with constraints Pin
Member 1487381426-Jun-20 13:59
Member 1487381426-Jun-20 13:59 
AnswerRe: Dynamic Programming / Greedy algorithm - Best time with constraints Pin
Gerry Schmitz26-Jun-20 6:47
mveGerry Schmitz26-Jun-20 6:47 
GeneralRe: Dynamic Programming / Greedy algorithm - Best time with constraints Pin
Member 1487381426-Jun-20 10:10
Member 1487381426-Jun-20 10:10 
QuestionImplementation of the hash function in a HashMap Pin
terrybogard425-Jun-20 23:07
terrybogard425-Jun-20 23:07 
AnswerRe: Implementation of the hash function in a HashMap Pin
Alan Balkany8-Sep-20 7:16
Alan Balkany8-Sep-20 7:16 
QuestionAlgorithms work Pin
Member 1484318525-May-20 5:50
Member 1484318525-May-20 5:50 
AnswerRe: Algorithms work Pin
Dave Kreskowiak25-May-20 5:58
mveDave Kreskowiak25-May-20 5:58 
AnswerRe: Algorithms work Pin
Eddy Vluggen25-May-20 11:28
professionalEddy Vluggen25-May-20 11:28 
GeneralRe: Algorithms work Pin
Richard Deeming27-May-20 1:25
mveRichard Deeming27-May-20 1:25 
GeneralRe: Algorithms work Pin
Eddy Vluggen27-May-20 9:59
professionalEddy Vluggen27-May-20 9:59 
AnswerRe: Algorithms work Pin
ZurdoDev27-May-20 10:46
professionalZurdoDev27-May-20 10:46 
GeneralRe: Algorithms work Pin
kalberts27-May-20 11:13
kalberts27-May-20 11:13 
GeneralRe: Algorithms work Pin
Eddy Vluggen27-May-20 11:17
professionalEddy Vluggen27-May-20 11:17 
GeneralRe: Algorithms work Pin
Eddy Vluggen27-May-20 11:14
professionalEddy Vluggen27-May-20 11:14 
AnswerRe: Algorithms work Pin
Patrice T28-May-20 23:20
mvePatrice T28-May-20 23:20 
Questionalgorithm Pin
Member 1483481217-May-20 0:57
Member 1483481217-May-20 0:57 
AnswerRe: algorithm Pin
Victor Nijegorodov17-May-20 1:02
Victor Nijegorodov17-May-20 1:02 

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.