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
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
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
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:
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
&
> - 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
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
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
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
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
>
>
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
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
12 matches
Mail list logo