TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Darin McBride
from: Jasen Betts
date: 2004-05-21 06:42:26
subject: A question

Hi Darin.

19-May-04 17:29:58, Darin McBride wrote to Pascal Schmidt


 DM> Hello Pascal!

 DM> Replying to a message of Pascal Schmidt to Neil Heller:

 PS>> What I'm saying is that sometimes an algorithm that looks faster
 PS>> on paper turns out to suck in practise.

 PS>>>> The most primitive algorithm for this problem (compare each
 PS>>>> with each) would be O(n^2).
 NH>>> Yipes, I hope it doesn't come to that.
 PS>> That one is very memory efficient, though, and good enough for
 PS>> smaller input sets. Think about using your approach for 64 bit
 PS>> integers, how much memory would your hash table consume?

 DM> With a reasonable hash algorithm, not much more space than the
 DM> original list ;-)

Which is fine as long as the ordering of the output is non-critical
(hmm I guess you could use an O(n) sort on the output. :)

 -=> Bye <=-

---
(3:640/1042)
* Origin: You think "I'm no fool!" but I am! - Spike Milligan
SEEN-BY: 633/267 270
@PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.