[flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o

2008-02-22 Thread Maciek Sakrejda
I don't believe that will do it, since the arrays aren't actually equal: I believe Arrays (for the purposes of object comparison) are only equal if they contain the same elements in the same order. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Scot <[EM

[flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o

2008-02-23 Thread andrii_olefirenko
if you are really concerned about performance I would recommend to hash values added to the array into common hash and then comparing two arrays would take only O(1) not O(n) Andrii Olefirenko --- In flexcoders@yahoogroups.com, "Sergey Kovalyov" <[EMAIL PROTECTED]> wrote: > > What is the best way

[flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o

2008-02-24 Thread andrii_olefirenko
o > Sent: Saturday, February 23, 2008 1:01 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: What is the best way to compare two arrays > element by element ignoring the o > > > > if you are really concerned about performance I would recommend to > hash value

[flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o

2008-02-24 Thread andrii_olefirenko
so the total overhead > you've incurred is O(n). > > Gordon Smith > Adobe Flex SDK Team > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of andrii_olefirenko > Sent: Sunday, February 24, 2008 7:18 AM > To:

[flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o

2008-02-24 Thread andrii_olefirenko
t; > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of andrii_olefirenko > Sent: Sunday, February 24, 2008 7:21 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: What is the best way to compare two arrays &

[flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o

2008-02-24 Thread andrii_olefirenko
> - Gordon > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of andrii_olefirenko > Sent: Sunday, February 24, 2008 7:44 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: What is the best way to compare

RE: [flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o

2008-02-23 Thread Gordon Smith
s.com [mailto:[EMAIL PROTECTED] On Behalf Of andrii_olefirenko Sent: Saturday, February 23, 2008 1:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o if you are really concerned about performance I would reco

Re: [flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o

2008-02-24 Thread Eric Cancil
0-element arrays would > > take the same time as comparing two 100-element arrays. > > > > Gordon Smith > > Adobe Flex SDK Team > > > > > > > > From: flexcoders@yahoogroups.com [mailto: > flexcoders@yahoogroups.com

RE: [flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o

2008-02-24 Thread Gordon Smith
m: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of andrii_olefirenko Sent: Sunday, February 24, 2008 7:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o The trick is to keep hash value of all elements

RE: [flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o

2008-02-24 Thread Maciek
gt; From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] > On Behalf Of andrii_olefirenko > Sent: Sunday, February 24, 2008 7:18 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: What is the best way to compare two arrays > element by element ignoring the o > >

RE: [flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o

2008-02-24 Thread Gordon Smith
andrii_olefirenko Sent: Sunday, February 24, 2008 7:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o That's right if you treat a user as continuous array of input data. If the user is a human, that won

RE: [flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o

2008-02-24 Thread Gordon Smith
Sent: Sunday, February 24, 2008 7:44 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o "I'm not a math guy, I'm more of a miracle guy"(c) :) Picking up a good hash function is art :) I wo