Class ExactMatchDistance

java.lang.Object
org.cicirello.permutations.distance.ExactMatchDistance
All Implemented Interfaces:
NormalizedPermutationDistanceMeasurer, NormalizedPermutationDistanceMeasurerDouble, PermutationDistanceMeasurer, PermutationDistanceMeasurerDouble

public final class ExactMatchDistance extends Object implements NormalizedPermutationDistanceMeasurer
Exact Match distance is an extension of Hamming distance but to non-binary strings, in this case, permutations. It is the count of the number of positions for which the two permutations contain different elements.

Runtime: O(n), where n is the permutation length.

Exact match distance was introduced in:
S. Ronald, "More distance functions for order-based encodings," in Proc. IEEE CEC. IEEE Press, 1998, pp. 558–563.

  • Constructor Details

    • ExactMatchDistance

      public ExactMatchDistance()
      Constructs the distance measurer as specified in the class documentation.
  • Method Details