Click here to Skip to main content
15,917,628 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Geometry problem Pin
Daniel.Sturza27-Dec-09 7:13
Daniel.Sturza27-Dec-09 7:13 
AnswerRe: Geometry problem Pin
ProtoBytes28-Dec-09 6:21
ProtoBytes28-Dec-09 6:21 
AnswerRe: Geometry problem [modified] Pin
ProtoBytes28-Dec-09 9:05
ProtoBytes28-Dec-09 9:05 
GeneralRe: Geometry problem Pin
Daniel.Sturza28-Dec-09 16:06
Daniel.Sturza28-Dec-09 16:06 
GeneralRe: Geometry problem Pin
belzu29-Dec-09 4:52
belzu29-Dec-09 4:52 
AnswerRe: Geometry problem Pin
belzu29-Dec-09 4:35
belzu29-Dec-09 4:35 
AnswerRe: Geometry problem Pin
Skippums13-Jan-10 11:32
Skippums13-Jan-10 11:32 
QuestionPair wise testing with QICT Knuth shuffle algorithm Pin
ProtoBytes24-Dec-09 12:11
ProtoBytes24-Dec-09 12:11 
I am engaged in research and development of a new article in a series of articles on algorithms. I plant to use the Big ‘O’ Algorithm Analyzer for .NET featured in my article here at The Code Project.

Big O Algorithm Analyzer for .NET

I recently read the MSDN Article by Dr. James McCaffrey on the QICT pair wise testing utility he wrote for. NET. In his article he encourages the reader to try to use different algorithms for weighting the pairs found by the algorithms using in the tool.
I thought this would be a great application to put under test of the Big ‘O’ tool to demonstrate how to instrument code in an application and additionally show some methods of improving the algorithms for given data sets.

Dr. James’ article can be found here:

Pairwise Testing with QICT

I would like to ask any one who would like to write a different algorithm as described in the article to post it here or discuss different approaches which seem like they would be an asset to the existing code base.
I will also demonstrate the difference of a good Knuth shuffle and a bad on assume the Perl code below:

Bad Knuth:

sub shuffle {
    my @array = @_;
    my $length = scalar(@array);

    for (my $i = 0; $i < $length; $i++) {
        my $r = int(rand() * $length);
        @array[$i, $r] = @array[$r, $i];
    }

    return @array;
}


Good Knuth:

sub shuffle {
    my @array = @_;
    my $length = scalar(@array);

    for (my $i = $length - 1; $i > 0; $i--) {
        my $r = int(rand() * ($i + 1));
        @array[$i, $r] = @array[$r, $i];
    }

    return @array;
}

RantRe: Pair wise testing with QICT Knuth shuffle algorithm Pin
ProtoBytes29-Dec-09 14:26
ProtoBytes29-Dec-09 14:26 
GeneralRe: Pair wise testing with QICT Knuth shuffle algorithm Pin
Richard MacCutchan29-Dec-09 23:05
mveRichard MacCutchan29-Dec-09 23:05 
GeneralRe: Pair wise testing with QICT Knuth shuffle algorithm Pin
ProtoBytes30-Dec-09 6:27
ProtoBytes30-Dec-09 6:27 
GeneralRe: Pair wise testing with QICT Knuth shuffle algorithm Pin
Richard MacCutchan30-Dec-09 10:52
mveRichard MacCutchan30-Dec-09 10:52 
QuestionGraph algorithms on bitgraphs Pin
harold aptroot23-Dec-09 6:21
harold aptroot23-Dec-09 6:21 
AnswerRe: Graph algorithms on bitgraphs Pin
Luc Pattyn23-Dec-09 7:00
sitebuilderLuc Pattyn23-Dec-09 7:00 
GeneralRe: Graph algorithms on bitgraphs Pin
harold aptroot23-Dec-09 7:13
harold aptroot23-Dec-09 7:13 
GeneralRe: Graph algorithms on bitgraphs Pin
Tim Craig23-Dec-09 10:02
Tim Craig23-Dec-09 10:02 
GeneralRe: Graph algorithms on bitgraphs Pin
harold aptroot24-Jan-10 6:44
harold aptroot24-Jan-10 6:44 
AnswerRe: Speed comparison of data types [modified] Pin
harold aptroot21-Dec-09 5:30
harold aptroot21-Dec-09 5:30 
GeneralRe: Speed comparison of data types Pin
harold aptroot21-Dec-09 6:40
harold aptroot21-Dec-09 6:40 
AnswerRe: Speed comparison of data types Pin
Luc Pattyn21-Dec-09 6:37
sitebuilderLuc Pattyn21-Dec-09 6:37 
GeneralRe: Speed comparison of data types Pin
harold aptroot21-Dec-09 6:43
harold aptroot21-Dec-09 6:43 
QuestionFluid Layout By Custom Polygon Shapes Pin
Som Shekhar15-Dec-09 18:36
Som Shekhar15-Dec-09 18:36 
QuestionWhat will be the height of fluid columns in a variable width cylinder Pin
Som Shekhar15-Dec-09 7:26
Som Shekhar15-Dec-09 7:26 
AnswerRe: What will be the height of fluid columns in a variable width cylinder Pin
Dr.Walt Fair, PE15-Dec-09 7:57
professionalDr.Walt Fair, PE15-Dec-09 7:57 
GeneralRe: What will be the height of fluid columns in a variable width cylinder Pin
Som Shekhar15-Dec-09 8:05
Som Shekhar15-Dec-09 8:05 

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.