Click here to Skip to main content
15,897,371 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Contours / Isolines Pin
Peter_in_278018-Oct-10 21:50
professionalPeter_in_278018-Oct-10 21:50 
AnswerRe: Contours / Isolines Pin
Alan Balkany19-Oct-10 4:08
Alan Balkany19-Oct-10 4:08 
QuestionPV, FV and IRR Calculation Pin
davjanks10-Oct-10 21:24
davjanks10-Oct-10 21:24 
AnswerRe: PV, FV and IRR Calculation Pin
Luc Pattyn11-Oct-10 1:29
sitebuilderLuc Pattyn11-Oct-10 1:29 
GeneralRe: PV, FV and IRR Calculation Pin
davjanks11-Oct-10 7:35
davjanks11-Oct-10 7:35 
GeneralRe: PV, FV and IRR Calculation Pin
Luc Pattyn11-Oct-10 8:07
sitebuilderLuc Pattyn11-Oct-10 8:07 
AnswerRe: PV, FV and IRR Calculation Pin
Ian Shlasko15-Oct-10 4:44
Ian Shlasko15-Oct-10 4:44 
QuestionFind an algorithm Pin
Not Active9-Oct-10 19:40
mentorNot Active9-Oct-10 19:40 
I've probably been staring at this far too long but I can't find an algorithm that will return the correct results for the code below. Anyone have some fresh ideas?

private void Test()
{
    Logic(false, false, false, false, false, false, false);
    Logic(false, false, false, false, true, true, true); 
    Logic(false, false, false, false, true, false, false);
    Logic(false, false, true, false, true, true, false);
    Logic(false, false, true, true, true, true, true);
}

private void Logic(bool f, bool fl, bool d, bool dl, bool r, bool rl, bool expected)
{
    bool result = [What algorithm goes here];

    System.Diagnostics.Debug.Assert(result == expected, "Does not match expected results");
}


I know the language. I've read a book. - _Madmatt

AnswerRe: Find an algorithm Pin
Luc Pattyn9-Oct-10 23:08
sitebuilderLuc Pattyn9-Oct-10 23:08 
GeneralRe: Find an algorithm Pin
Not Active11-Oct-10 2:38
mentorNot Active11-Oct-10 2:38 
AnswerRe: Find an algorithm PinPopular
harold aptroot10-Oct-10 1:32
harold aptroot10-Oct-10 1:32 
GeneralRe: Find an algorithm Pin
Not Active10-Oct-10 4:34
mentorNot Active10-Oct-10 4:34 
GeneralRe: Find an algorithm Pin
harold aptroot10-Oct-10 4:39
harold aptroot10-Oct-10 4:39 
AnswerRe: Find an algorithm Pin
lepipele10-Oct-10 19:24
lepipele10-Oct-10 19:24 
AnswerRe: Find an algorithm Pin
Member 419050110-Oct-10 21:01
Member 419050110-Oct-10 21:01 
GeneralRe: Find an algorithm Pin
Not Active11-Oct-10 2:03
mentorNot Active11-Oct-10 2:03 
GeneralRe: Find an algorithm Pin
Luc Pattyn11-Oct-10 3:06
sitebuilderLuc Pattyn11-Oct-10 3:06 
GeneralRe: Find an algorithm Pin
parth.p11-Oct-10 5:27
parth.p11-Oct-10 5:27 
GeneralRe: Find an algorithm Pin
Luc Pattyn11-Oct-10 5:46
sitebuilderLuc Pattyn11-Oct-10 5:46 
AnswerRe: Find an algorithm [modified] Pin
R. Erasmus10-Oct-10 23:01
R. Erasmus10-Oct-10 23:01 
GeneralRe: Find an algorithm Pin
Luc Pattyn11-Oct-10 1:30
sitebuilderLuc Pattyn11-Oct-10 1:30 
AnswerRe: Find an algorithm Pin
grgran11-Oct-10 4:59
grgran11-Oct-10 4:59 
GeneralRe: Find an algorithm Pin
Luc Pattyn11-Oct-10 5:04
sitebuilderLuc Pattyn11-Oct-10 5:04 
GeneralRe: Find an algorithm Pin
grgran11-Oct-10 5:32
grgran11-Oct-10 5:32 
GeneralRe: Find an algorithm Pin
Not Active11-Oct-10 7:20
mentorNot Active11-Oct-10 7:20 

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.