home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.programming
- Path: sparky!uunet!usc!howland.reston.ans.net!wupost!uwm.edu!linac!att!att!dptg!ulysses!ulysses.att.com!kpv
- From: kpv@ulysses.att.com (Phong Vo)
- Subject: Re: Locating duplicates
- Message-ID: <1993Jan5.150010.27104@ulysses.att.com>
- Date: Tue, 5 Jan 1993 15:00:10 GMT
- References: <C07FJo.4vq@ux1.cso.uiuc.edu> <1993Jan2.041658.21596@organpipe.uug.arizona.edu>
- Organization: AT&T Bell Labs
- Lines: 14
-
- In article <1993Jan2.041658.21596@organpipe.uug.arizona.edu> dave@cs.arizona.edu (Dave Schaumann) writes:
- >In article <C07FJo.4vq@ux1.cso.uiuc.edu>, ceblair@ux1 (Charles Blair) writes:
- >> Given a large array of integers. Is there a way to identify duplicates
- >>which is substantially less work than sorting the array?
- >
- >...lots of good suggestions for the general case...
-
- But most often this kind of question comes up in practice
- because you have a large array of integers in a small range.
- In that case, using a bit map for the range, you can do it
- in linear time and space proportion to the range size.
-
- Phong Vo, kpv@ulysses.att.com
- AT&T Bell Labs, 600 Mountain Ave, Murray Hill, NJ07974
-