Click here to Skip to main content
15,899,314 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: algorithm for an optimization problem Pin
OriginalGriff22-Oct-17 10:16
mveOriginalGriff22-Oct-17 10:16 
Start by looking at how to would do it manually: get a pen and paper, and start playing with numbers.
Work out how you do it yourself, and an algorithm should become apparent.

Working this out is part of the task - heck, it is the task, you aren't supposed to implement it yet, if ever. It's an exercise in logical thinking and analysis, intended to start you thinking in "appropriate" ways. If you don't do it yourself, the "thought patterns" that you will use later don't start to form, and things can be a load harder later.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!

PraiseRe: algorithm for an optimization problem Pin
David Crow22-Oct-17 16:45
David Crow22-Oct-17 16:45 
GeneralRe: algorithm for an optimization problem Pin
Bram van Kampen22-Oct-17 17:40
Bram van Kampen22-Oct-17 17:40 
AnswerRe: algorithm for an optimization problem Pin
CPallini22-Oct-17 22:17
mveCPallini22-Oct-17 22:17 
AnswerRe: algorithm for an optimization problem Pin
jschell23-Oct-17 7:28
jschell23-Oct-17 7:28 
QuestionCMonthCalCtrlDlg and the 2038 problem Pin
Member 1345973322-Oct-17 6:13
Member 1345973322-Oct-17 6:13 
QuestionRe: CMonthCalCtrlDlg and the 2038 problem Pin
David Crow22-Oct-17 16:56
David Crow22-Oct-17 16:56 
AnswerRe: CMonthCalCtrlDlg and the 2038 problem Pin
Jochen Arndt22-Oct-17 22:45
professionalJochen Arndt22-Oct-17 22:45 
GeneralRe: CMonthCalCtrlDlg and the 2038 problem Pin
Member 1345973323-Oct-17 2:52
Member 1345973323-Oct-17 2:52 
QuestionC++ Queue and Stacks Pin
Member 1347847922-Oct-17 1:47
Member 1347847922-Oct-17 1:47 
AnswerRe: C++ Queue and Stacks Pin
CPallini22-Oct-17 5:02
mveCPallini22-Oct-17 5:02 
AnswerRe: C++ Queue and Stacks Pin
Richard MacCutchan22-Oct-17 11:15
mveRichard MacCutchan22-Oct-17 11:15 
AnswerRe: C++ Queue and Stacks Pin
David Crow22-Oct-17 17:02
David Crow22-Oct-17 17:02 
AnswerRe: C++ Queue and Stacks Pin
jschell23-Oct-17 7:30
jschell23-Oct-17 7:30 
QuestionFind out optimum volume for packing different boxes Pin
Member 1347639321-Oct-17 18:25
Member 1347639321-Oct-17 18:25 
AnswerRe: Find out optimum volume for packing different boxes Pin
Richard MacCutchan21-Oct-17 20:48
mveRichard MacCutchan21-Oct-17 20:48 
GeneralRe: Find out optimum volume for packing different boxes Pin
Sascha Lefèvre21-Oct-17 21:01
professionalSascha Lefèvre21-Oct-17 21:01 
AnswerRe: Find out optimum volume for packing different boxes Pin
CPallini22-Oct-17 5:07
mveCPallini22-Oct-17 5:07 
GeneralRe: Find out optimum volume for packing different boxes Pin
David Crow22-Oct-17 17:03
David Crow22-Oct-17 17:03 
QuestionCan I put a variable length array inside a struct somehow? Pin
arnold_w17-Oct-17 0:38
arnold_w17-Oct-17 0:38 
AnswerRe: Can I put a variable length array inside a struct somehow? Pin
Peter_in_278017-Oct-17 0:57
professionalPeter_in_278017-Oct-17 0:57 
GeneralRe: Can I put a variable length array inside a struct somehow? Pin
arnold_w17-Oct-17 1:08
arnold_w17-Oct-17 1:08 
GeneralRe: Can I put a variable length array inside a struct somehow? Pin
Peter_in_278017-Oct-17 1:43
professionalPeter_in_278017-Oct-17 1:43 
AnswerRe: Can I put a variable length array inside a struct somehow? Pin
CPallini17-Oct-17 1:54
mveCPallini17-Oct-17 1:54 
GeneralRe: Can I put a variable length array inside a struct somehow? Pin
arnold_w17-Oct-17 2:02
arnold_w17-Oct-17 2: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.