Click here to Skip to main content
15,949,686 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Socket message(frame) pattern matching Pin
Hamed Musavi13-May-10 9:39
Hamed Musavi13-May-10 9:39 
QuestionNeed of Decision Tree Implementation Pin
Radiit6-May-10 3:05
Radiit6-May-10 3:05 
Questionfind a sulution! Pin
wbgxx3-May-10 3:59
wbgxx3-May-10 3:59 
AnswerRe: find a sulution! Pin
Kevin Drzycimski3-May-10 4:06
Kevin Drzycimski3-May-10 4:06 
GeneralRe: find a sulution! Pin
wbgxx3-May-10 4:12
wbgxx3-May-10 4:12 
GeneralRe: find a sulution! Pin
Luc Pattyn3-May-10 4:13
sitebuilderLuc Pattyn3-May-10 4:13 
GeneralRe: find a sulution! Pin
wbgxx3-May-10 4:15
wbgxx3-May-10 4:15 
AnswerRe: find a solution! Pin
theCPkid6-May-10 2:21
theCPkid6-May-10 2:21 
I feel what he wants is to input two numbers n and m and the program should choose some numbers from series 1,2..n whose sum equals m and return all such combinations.

For n=10, m=8, the possible combinations are:
1+7
2+6
3+5
..

1+1+6
1+2+5
..
..

there can be a lot of such combinations.
This is probably the ideal candidate for DP?
1. store all possible ways to make 1 using numbers from given series and store them
2. likewise all possible ways to make 2. since 2 can only be either using it alone or 1+1 and then to make 1, you already have ways stored during step 1 and so on for oher nos. for 3 = 3, 2+1. use info. for ways to make 2 and you'll automatically get 3, 2+1, 1+1+1
for 4 = 4, 3+1...
GeneralRe: find a solution! [modified] Pin
Radhakrishnan G.18-May-10 3:30
Radhakrishnan G.18-May-10 3:30 
GeneralRe: find a solution! Pin
talazz12-May-11 2:53
talazz12-May-11 2:53 
QuestionSimulating movement Pin
Code-o-mat24-Apr-10 5:49
Code-o-mat24-Apr-10 5:49 
AnswerRe: Simulating movement Pin
Software_Developer24-Apr-10 10:12
Software_Developer24-Apr-10 10:12 
GeneralRe: Simulating movement Pin
Code-o-mat24-Apr-10 22:02
Code-o-mat24-Apr-10 22:02 
GeneralRe: Simulating movement Pin
Software_Developer29-Apr-10 6:26
Software_Developer29-Apr-10 6:26 
AnswerRe: Simulating movement Pin
molesworth29-Apr-10 7:11
molesworth29-Apr-10 7:11 
GeneralRe: Simulating movement Pin
Code-o-mat29-Apr-10 9:16
Code-o-mat29-Apr-10 9:16 
QuestionWhats in a name? Pin
Tadeusz Westawic23-Apr-10 2:01
Tadeusz Westawic23-Apr-10 2:01 
QuestionConsole shapes? Pin
venomation18-Apr-10 2:58
venomation18-Apr-10 2:58 
AnswerRe: Console shapes? Pin
Richard MacCutchan18-Apr-10 11:06
mveRichard MacCutchan18-Apr-10 11:06 
AnswerRe: Console shapes? Pin
MikeMarq20-Apr-10 16:33
MikeMarq20-Apr-10 16:33 
Question"Best Fit" Algorithm Request && Teach A Man To Fish Pin
Michael Fritzius17-Apr-10 13:10
professionalMichael Fritzius17-Apr-10 13:10 
AnswerRe: "Best Fit" Algorithm Request && Teach A Man To Fish Pin
Luc Pattyn17-Apr-10 13:45
sitebuilderLuc Pattyn17-Apr-10 13:45 
GeneralRe: "Best Fit" Algorithm Request && Teach A Man To Fish Pin
Radhakrishnan G.18-May-10 3:44
Radhakrishnan G.18-May-10 3:44 
GeneralRe: "Best Fit" Algorithm Request && Teach A Man To Fish Pin
harold aptroot17-Apr-10 14:31
harold aptroot17-Apr-10 14:31 
GeneralRe: "Best Fit" Algorithm Request && Teach A Man To Fish Pin
Som Shekhar17-Apr-10 20:46
Som Shekhar17-Apr-10 20:46 

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.