home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.programming
- Path: sparky!uunet!email!news
- From: rainer@ruble.fml.tuwien.ac.at (Rainer Staringer)
- Subject: How to find vectors with minimum Hamming-distance?
- Message-ID: <1992Sep3.132931.2083@email.tuwien.ac.at>
- Sender: news@email.tuwien.ac.at
- Nntp-Posting-Host: ruble.fml.tuwien.ac.at
- Reply-To: rainer@eimoni.tuwien.ac.at
- Organization: Technical University of Vienna
- Date: Thu, 3 Sep 1992 13:29:31 GMT
- Lines: 16
-
- I stumbled over the following problem recently, and I wonder if there
- is a clever algorithm for it: I have a set of n m-dimensional vectors
- (vector elements are from a finite set, but not necessarily binary),
- and I want to find the 2 vectors with the minimum Hamming-distance
- (i.e. those which have the most elements in common). Is there any
- way you can find them using less than O(n^2) vector comparisons?
- I know there is a clever algorithm for the equivalent problem with
- Euclidean metric, but I could not find any for the Hamming-metric
- variant.
-
- Thanks for any ideas, references, etc.
-
- Rainer
- --
- Rainer Staringer | rainer@fml.tuwien.ac.at
- Financial Markets Lab, TU Vienna | +43 (1) 58801/8138
-