home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!Q.icl.co.uk!dsbc!jura!pete
- From: pete@sst.icl.co.uk (Pete Bevin)
- Newsgroups: comp.programming
- Subject: Re: Locating duplicates
- Message-ID: <pete.165741.07Jan93@sst.icl.co.uk>
- Date: 7 Jan 93 17:07:04 GMT
- References: <C07FJo.4vq@ux1.cso.uiuc.edu> <PERM.93Jan5210346@groucho.csd.uu.se>
- Sender: news@dsbc.icl.co.uk
- Reply-To: pete@sst.icl.co.uk (Pete Bevin)
- Lines: 14
- Nntp-Posting-Host: sst.icl.co.uk
- Originator: pete@jura
-
- Per Mildner writes:
- > A general solution to this problem (ie not dependent on the values
- > being integers) can be found in an fairly recent CACM article (I don't
- > have it handy, probably first half of 1992, you probably could use
- > WAIS to find it... ).
-
- The article is in CACM, March 1991, pp 62--73.
-
- The algorithm given moves duplicated elements to the end of the list,
- but it may not preserve the order of the non-duplicate elements.
- However, it can preserve them if it is allowed O(n) space. The authors
- did not find a linear-time, constant space, stable algorithm.
-
- Pete.
-