Click here to Skip to main content
15,898,729 members
Home / Discussions / C#
   

C#

 
GeneralRe: Programming On LAN Pin
Rob Philpott27-Mar-08 3:02
Rob Philpott27-Mar-08 3:02 
GeneralRe: Programming On LAN Pin
Ed.Poore27-Mar-08 3:02
Ed.Poore27-Mar-08 3:02 
GeneralFileSystemWatcher and WinService Pin
RickyRicon27-Mar-08 2:30
RickyRicon27-Mar-08 2:30 
QuestionHelp regarding crystal reports Pin
mrcsn27-Mar-08 2:09
mrcsn27-Mar-08 2:09 
GeneralRe: Help regarding crystal reports Pin
rapidtech27-Mar-08 2:26
rapidtech27-Mar-08 2:26 
GeneralRe: Help regarding crystal reports Pin
mrcsn27-Mar-08 18:55
mrcsn27-Mar-08 18:55 
GeneralRe: Help regarding crystal reports Pin
Anoop Unnikrishnan27-Mar-08 2:28
Anoop Unnikrishnan27-Mar-08 2:28 
GeneralList compare algorithm Pin
Stevo Z27-Mar-08 2:03
Stevo Z27-Mar-08 2:03 
Hi,

I would like to compare 2 instances of List < Point > which meet following specification.

<br />
 - both lists contain uneven count of random Points (List < Point > )<br />
 - special method evaluates two points (bool MatchPoints(ref Point p1, ref Point p2); )<br />
 - there is no similarity in points in those lists. They can be perfectly similar or they can have no points in commmon at all.<br />
 - it is possible to do whatever processing (hashing etc...) of those lists when created, because they won't change much (if at all) after created. <br />
 - result should be saying percentage of points that match from all evaluated points<br />
 - there will be up to 1000 points approx in a single list. <br />



simplyfied Example:
bool MatchPoints(ref Point p1, ref Point p2)
{
    return (p1.X == p2.X && p1.Y == p2.Y);
}

List<point> l1, l2;

l1 = {[0,0], [1,1], [2,2], [3,3]}
l2 = {[1,1], [3,3], [4,4]}

points that match = {[1,1] , [3,3]}
points that don't match = {[0,0], [2,2], [4,4]}

percentage matched = 2*2 / 7 = 4/7;


any ideas Smile | :)

thank you

zilo

GeneralRe: List compare algorithm Pin
Pete O'Hanlon27-Mar-08 2:23
mvePete O'Hanlon27-Mar-08 2:23 
GeneralRe: List compare algorithm Pin
Stevo Z27-Mar-08 3:02
Stevo Z27-Mar-08 3:02 
GeneralRe: List compare algorithm Pin
carbon_golem27-Mar-08 3:43
carbon_golem27-Mar-08 3:43 
GeneralRe: List compare algorithm Pin
Stevo Z27-Mar-08 3:58
Stevo Z27-Mar-08 3:58 
GeneralRe: List compare algorithm Pin
carbon_golem27-Mar-08 4:22
carbon_golem27-Mar-08 4:22 
GeneralRe: List compare algorithm Pin
Stevo Z27-Mar-08 4:26
Stevo Z27-Mar-08 4:26 
GeneralRe: List compare algorithm Pin
carbon_golem27-Mar-08 4:42
carbon_golem27-Mar-08 4:42 
GeneralRe: List compare algorithm Pin
Stevo Z27-Mar-08 4:57
Stevo Z27-Mar-08 4:57 
GeneralRe: List compare algorithm Pin
carbon_golem27-Mar-08 5:15
carbon_golem27-Mar-08 5:15 
GeneralRe: List compare algorithm Pin
Stevo Z27-Mar-08 5:38
Stevo Z27-Mar-08 5:38 
GeneralRe: List compare algorithm Pin
carbon_golem27-Mar-08 5:52
carbon_golem27-Mar-08 5:52 
GeneralRe: List compare algorithm Pin
DavidNohejl27-Mar-08 4:51
DavidNohejl27-Mar-08 4:51 
GeneralRe: List compare algorithm Pin
Stevo Z27-Mar-08 5:13
Stevo Z27-Mar-08 5:13 
GeneralRe: List compare algorithm Pin
DavidNohejl27-Mar-08 5:59
DavidNohejl27-Mar-08 5:59 
GeneralRe: List compare algorithm Pin
Stevo Z27-Mar-08 6:41
Stevo Z27-Mar-08 6:41 
QuestionChange mouse cursor when hover mouse over a DataGridView cell's border ? Pin
nesaver8527-Mar-08 1:47
nesaver8527-Mar-08 1:47 
AnswerRe: Change mouse cursor when hover mouse over a DataGridView cell's border ? Pin
Eswara Kumar2-Apr-10 2:32
Eswara Kumar2-Apr-10 2:32 

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.