Click here to Skip to main content
15,894,250 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Dynamic Programming / Greedy algorithm - Best time with constraints Pin
Member 1487381426-Jun-20 10:30
Member 1487381426-Jun-20 10:30 
GeneralRe: Dynamic Programming / Greedy algorithm - Best time with constraints Pin
harold aptroot26-Jun-20 11:05
harold aptroot26-Jun-20 11:05 
GeneralRe: Dynamic Programming / Greedy algorithm - Best time with constraints Pin
Member 1487381426-Jun-20 11:20
Member 1487381426-Jun-20 11:20 
GeneralRe: Dynamic Programming / Greedy algorithm - Best time with constraints Pin
harold aptroot26-Jun-20 11:56
harold aptroot26-Jun-20 11:56 
GeneralRe: Dynamic Programming / Greedy algorithm - Best time with constraints Pin
Member 1487381426-Jun-20 12:23
Member 1487381426-Jun-20 12:23 
GeneralRe: Dynamic Programming / Greedy algorithm - Best time with constraints Pin
harold aptroot26-Jun-20 12:33
harold aptroot26-Jun-20 12:33 
GeneralRe: Dynamic Programming / Greedy algorithm - Best time with constraints Pin
Member 1487381426-Jun-20 12:59
Member 1487381426-Jun-20 12:59 
AnswerRe: Dynamic Programming / Greedy algorithm - Best time with constraints Pin
Gerry Schmitz26-Jun-20 5:47
mveGerry Schmitz26-Jun-20 5:47 
The "sub problem" is to not assign more "job time" than T1 to any one assignee.

Since there was no constraint that said an assignee could not be "idle" (or "optimal"), one can simply read contiguous jobs (in say reverse time order) and assign "blocks" until they're used up or assignees are at capacity.

The "dynamic" part is the looping through the job list and assigning them (depleting the job list while adding to an assignee's jobs.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food

GeneralRe: Dynamic Programming / Greedy algorithm - Best time with constraints Pin
Member 1487381426-Jun-20 9:10
Member 1487381426-Jun-20 9:10 
QuestionImplementation of the hash function in a HashMap Pin
terrybogard425-Jun-20 22:07
terrybogard425-Jun-20 22:07 
AnswerRe: Implementation of the hash function in a HashMap Pin
Alan Balkany8-Sep-20 6:16
Alan Balkany8-Sep-20 6:16 
QuestionAlgorithms work Pin
Member 1484318525-May-20 4:50
Member 1484318525-May-20 4:50 
AnswerRe: Algorithms work Pin
Dave Kreskowiak25-May-20 4:58
mveDave Kreskowiak25-May-20 4:58 
AnswerRe: Algorithms work Pin
Eddy Vluggen25-May-20 10:28
professionalEddy Vluggen25-May-20 10:28 
GeneralRe: Algorithms work Pin
Richard Deeming27-May-20 0:25
mveRichard Deeming27-May-20 0:25 
GeneralRe: Algorithms work Pin
Eddy Vluggen27-May-20 8:59
professionalEddy Vluggen27-May-20 8:59 
AnswerRe: Algorithms work Pin
ZurdoDev27-May-20 9:46
professionalZurdoDev27-May-20 9:46 
GeneralRe: Algorithms work Pin
kalberts27-May-20 10:13
kalberts27-May-20 10:13 
GeneralRe: Algorithms work Pin
Eddy Vluggen27-May-20 10:17
professionalEddy Vluggen27-May-20 10:17 
GeneralRe: Algorithms work Pin
Eddy Vluggen27-May-20 10:14
professionalEddy Vluggen27-May-20 10:14 
AnswerRe: Algorithms work Pin
Patrice T28-May-20 22:20
mvePatrice T28-May-20 22:20 
Questionalgorithm Pin
Member 1483481216-May-20 23:57
Member 1483481216-May-20 23:57 
AnswerRe: algorithm Pin
Victor Nijegorodov17-May-20 0:02
Victor Nijegorodov17-May-20 0:02 
AnswerRe: algorithm Pin
Richard MacCutchan17-May-20 1:23
mveRichard MacCutchan17-May-20 1:23 
AnswerRe: algorithm Pin
Patrice T20-May-20 15:08
mvePatrice T20-May-20 15:08 

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.