Click here to Skip to main content
15,902,842 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem with DirectInput8Create while debugging Pin
PJ Arends28-Nov-05 9:39
professionalPJ Arends28-Nov-05 9:39 
GeneralRe: Problem with DirectInput8Create while debugging Pin
coldy28-Nov-05 20:12
coldy28-Nov-05 20:12 
QuestionProblem with DirectInput8Create while debugging Pin
coldy27-Nov-05 21:57
coldy27-Nov-05 21:57 
QuestionProblem with DirectInput8Create while debugging Pin
coldy27-Nov-05 21:57
coldy27-Nov-05 21:57 
Questionhow to test algorithms for stability Pin
newsbies27-Nov-05 21:18
newsbies27-Nov-05 21:18 
QuestionRe: how to test algorithms for stability Pin
Bob Stanneveld27-Nov-05 22:16
Bob Stanneveld27-Nov-05 22:16 
AnswerRe: how to test algorithms for stability Pin
newsbies27-Nov-05 22:45
newsbies27-Nov-05 22:45 
GeneralRe: how to test algorithms for stability Pin
Bob Stanneveld28-Nov-05 7:29
Bob Stanneveld28-Nov-05 7:29 
Hello,

I normally don't prove the stability of an algorithm with a test program. I prove the stability and correctness of my algorithm using math. It's difficult to explain and even harder to do, but if you can do it, it's an powefull tool in your toolbox. I'm just glad that I don't have to use it much.. Blush | :O

A test program is there to help you resolve bugs in the implementation of your algorithm. Often, test programs are written for stress testing and preformance measuring.

If you want to prove your algoritm with a test program, you should have lots of data. You can choose the data carefully or use random data. The benefit of random data is that it mightsaves you a lot of work early in the process, but can cost you much more if you miss the hard-to-detect bug. Choosing your data carefully reduces the change that you miss a bug, but takes a lot of time early in the process. If you already verified the correctness of your algorithm, you should choose the random number approach and do a lot of stress testing (let your algorithm process HUGE amounts of data and see how it performs). If you want to debug your algorithm, you should carefully pick a sequence of data that you expect to give problems. These sequences can be very small.

Hope this helps.

Behind every great black man...
            ... is the police. - Conspiracy brother


Blog[^]
QuestionAssertion failure on CPropertySheet Pin
cpp_prgmer27-Nov-05 21:04
cpp_prgmer27-Nov-05 21:04 
AnswerRe: Assertion failure on CPropertySheet Pin
Blake Miller28-Nov-05 8:12
Blake Miller28-Nov-05 8:12 
GeneralRe: Assertion failure on CPropertySheet Pin
cpp_prgmer29-Nov-05 23:50
cpp_prgmer29-Nov-05 23:50 
GeneralRe: Assertion failure on CPropertySheet Pin
cpp_prgmer22-Jan-06 19:09
cpp_prgmer22-Jan-06 19:09 
GeneralRe: Assertion failure on CPropertySheet Pin
Blake Miller23-Jan-06 6:04
Blake Miller23-Jan-06 6:04 
QuestionPlease Help me............. Pin
thelip200527-Nov-05 19:34
thelip200527-Nov-05 19:34 
AnswerRe: Please Help me............. Pin
Calc2027-Nov-05 21:00
Calc2027-Nov-05 21:00 
AnswerRe: Please Help me............. Pin
Marc Soleda27-Nov-05 23:59
Marc Soleda27-Nov-05 23:59 
AnswerRe: Please Help me............. Pin
ThatsAlok29-Nov-05 1:59
ThatsAlok29-Nov-05 1:59 
QuestionReceiving events from an iframe in a CDHtmlDialog Pin
Florian Schaper27-Nov-05 19:17
Florian Schaper27-Nov-05 19:17 
Questionprint an MS-Access table Pin
Ankush Mehta27-Nov-05 19:13
Ankush Mehta27-Nov-05 19:13 
AnswerRe: print an MS-Access table Pin
vikas amin27-Nov-05 23:27
vikas amin27-Nov-05 23:27 
AnswerRe: print an MS-Access table Pin
Ankush Mehta27-Nov-05 23:38
Ankush Mehta27-Nov-05 23:38 
AnswerRe: print an MS-Access table Pin
S Douglas28-Nov-05 19:36
professionalS Douglas28-Nov-05 19:36 
AnswerRe: print an MS-Access table Pin
Ankush Mehta28-Nov-05 21:34
Ankush Mehta28-Nov-05 21:34 
GeneralRe: print an MS-Access table Pin
S Douglas28-Nov-05 21:59
professionalS Douglas28-Nov-05 21:59 
GeneralRe: print an MS-Access table Pin
Ankush Mehta28-Nov-05 22:51
Ankush Mehta28-Nov-05 22:51 

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.