Click here to Skip to main content
15,891,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Fastest code Pin
valikac11-Jun-03 6:26
valikac11-Jun-03 6:26 
GeneralRe: Fastest code Pin
doctorpi11-Jun-03 6:44
doctorpi11-Jun-03 6:44 
GeneralRe: Fastest code Pin
Maximilien11-Jun-03 6:51
Maximilien11-Jun-03 6:51 
GeneralRe: Fastest code Pin
doctorpi11-Jun-03 6:56
doctorpi11-Jun-03 6:56 
GeneralRe: Fastest code Pin
David Crow11-Jun-03 7:27
David Crow11-Jun-03 7:27 
GeneralRe: Fastest code Pin
doctorpi11-Jun-03 7:37
doctorpi11-Jun-03 7:37 
GeneralRe: Fastest code Pin
Mike Nordell12-Jun-03 8:44
Mike Nordell12-Jun-03 8:44 
GeneralRe: Fastest code Pin
doctorpi12-Jun-03 10:59
doctorpi12-Jun-03 10:59 
The problem is more complex that it seems. Is not a simple combination problem.
When you have the complete serie of 3^n (n=15) combinations is just a mathematical problem, but when do you have an incomplete set and not regular (not predectable), what combinations do you have to get to have the minimum number of combinations that guarantees n-1 hits? and n-2? and n-3? and all this in the minimum time.
Anyway the program do the reduction of 4.782.969 combinations to 314.569 in 52 secs.
Try to find and save in a file the minimum number of combinations that guarantees n-1 hits from a 3^14 combination file in less time.
The only thing that you have at the beggining is a file like this

1X211X2X12X12X1 .....row 1
X1112X12X12X12X
X212X121X212X12
1111X212XX212XX
.
.
.
.
X22X12X2X12X12X .....row 4.782.969 (and are not sorted)

If you have a better solution, sincerely I'll be really pleased to learn it.
Best Regards
Dr. Pi


GeneralRe: Fastest code Pin
jhwurmbach11-Jun-03 23:32
jhwurmbach11-Jun-03 23:32 
GeneralRe: Fastest code Pin
jbarton11-Jun-03 7:51
jbarton11-Jun-03 7:51 
GeneralRe: Fastest code Pin
doctorpi11-Jun-03 7:56
doctorpi11-Jun-03 7:56 
GeneralRe: Fastest code Pin
jbarton11-Jun-03 8:43
jbarton11-Jun-03 8:43 
GeneralRe: Fastest code Pin
basementman12-Jun-03 6:46
basementman12-Jun-03 6:46 
QuestionHow do you initialize a structure with a CPoint member? Pin
kleft11-Jun-03 5:38
kleft11-Jun-03 5:38 
AnswerRe: How do you initialize a structure with a CPoint member? Pin
valikac11-Jun-03 6:30
valikac11-Jun-03 6:30 
GeneralRe: How do you initialize a structure with a CPoint member? Pin
kleft11-Jun-03 7:40
kleft11-Jun-03 7:40 
GeneralRe: How do you initialize a structure with a CPoint member? Pin
David Crow11-Jun-03 8:07
David Crow11-Jun-03 8:07 
AnswerRe: How do you initialize a structure with a CPoint member? Pin
Anonymous12-Jun-03 7:09
Anonymous12-Jun-03 7:09 
Questionhow do I connect to other PCs with parallel port Pin
anhnt7911-Jun-03 5:29
anhnt7911-Jun-03 5:29 
AnswerRe: how do I connect to other PCs with parallel port Pin
valikac11-Jun-03 6:32
valikac11-Jun-03 6:32 
Generalftp problem Pin
t.ucello11-Jun-03 5:22
t.ucello11-Jun-03 5:22 
GeneralRe: ftp problem Pin
valikac11-Jun-03 6:42
valikac11-Jun-03 6:42 
GeneralRe: ftp problem Pin
basementman12-Jun-03 6:50
basementman12-Jun-03 6:50 
GeneralInstalling VC6 SP5 Pin
yarp11-Jun-03 5:09
yarp11-Jun-03 5:09 
GeneralRe: Installing VC6 SP5 Pin
SNathani11-Jun-03 8:21
SNathani11-Jun-03 8:21 

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.