>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 30, 2001 6:08 AM
Subject: Most efficient way to compare two arrays
> I have two arrays each having around 3000 elements. One array is a list of
> file names from a database and the other is a list of files on a file
> server. I would
OTECTED]]
> Sent: Tuesday, January 30, 2001 7:06 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Most efficient way to compare two arrays
>
>
> Don't use arrays if performance is important for you. If
> you're building a
> professional application move your data in a
run Thomas
Skickat: den 30 januari 2001 18:03
Till: [EMAIL PROTECTED]
Ämne: Re: Most efficient way to compare two arrays
Is this really more efficient for the kind of query that is required here.
Wouldn't the overhead of inserting all these rows into the database loose
any advantage availabl
ED]]
> Sent: Tuesday, January 30, 2001 7:06 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Most efficient way to compare two arrays
>
>
> Don't use arrays if performance is important for you. If
> you're building a
> professional application move your data in a database and
D]
Subject: Most efficient way to compare two arrays
I have two arrays each having around 3000 elements. One array is a list of
file names from a database and the other is a list of files on a file
server. I would like to compare the two arrays and end up with two arrays
showing what was in each
Can you get them in order? If the arrays are in alpha order for example
you can just go down both lists together ONCE ( O(n) I think ). I think it
would be in your best interest to sort them first if you have to. Any
ordering would do, as long as both lists are in the exact same order:
list1 =
I have two arrays each having around 3000 elements. One array is a list of
file names from a database and the other is a list of files on a file
server. I would like to compare the two arrays and end up with two arrays
showing what was in each array that was not in the other array. I am looking
f