Re: Testing Sequences for Uniqueness

new topic     » goto parent     » topic index » view thread      » older message » newer message

What's wrong with "compare()" ? With the program below, I'm getting about
32,500 compares per second.
---------------------
atom e
integer x,i,t
i=0
t=5
e = time()+t
while time()<e do
x=compare ({1,2,3,4,5,6},{1,2,3,4,5,6})
i+=1
end while
printf(1, "%f", i/t)
-------------------------



----- Original Message -----
From: "ck lester" <cklester at YAHOO.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Friday, August 25, 2000 5:38 AM
Subject: Testing Sequences for Uniqueness


> What is the fastest way to check two sequences (of six numbers) for
> uniqueness?
>
> If I have the following:
>
> x = { 1 , 2 , 3 , 4 , 5 , 6 }
> y = { 1 , 2 , 3 , 4 , 5 , 7 }
>
> What's the fastest are_different( x , y ) function out there?
>
> Thanks in advance!
> ck
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu