Class EditDistanceViaMinimumDetour

java.lang.Object
  |
  +--EditDistanceViaMinimumDetour

public class EditDistanceViaMinimumDetour
extends java.lang.Object


Field Summary
protected  boolean calculated
           
protected  int closestStringIndex
           
protected  EditDistanceGraphStateStack[] detours
           
protected  CharacterTable fromString
           
protected  int minimumDistance
           
protected static boolean TESTING
           
protected  CharacterTable[] toString
           
 
Constructor Summary
EditDistanceViaMinimumDetour(java.lang.String from, java.lang.String[] to)
           
 
Method Summary
protected  void calculate()
           
 java.lang.String closestString()
           
 int costFor(EditDistanceGraphState start, EditDistanceGraphState end)
           
 int detourFor(EditDistanceGraphState start, EditDistanceGraphState end)
           
static int lowerBoundFor(CharacterCountTable tableOne, CharacterCountTable tableTwo)
           
 int lowerBoundFor(EditDistanceGraphState state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fromString

protected CharacterTable fromString

toString

protected CharacterTable[] toString

detours

protected EditDistanceGraphStateStack[] detours

minimumDistance

protected int minimumDistance

calculated

protected boolean calculated

closestStringIndex

protected int closestStringIndex

TESTING

protected static boolean TESTING
Constructor Detail

EditDistanceViaMinimumDetour

public EditDistanceViaMinimumDetour(java.lang.String from,
                                    java.lang.String[] to)
Method Detail

closestString

public java.lang.String closestString()

calculate

protected void calculate()

detourFor

public int detourFor(EditDistanceGraphState start,
                     EditDistanceGraphState end)

costFor

public int costFor(EditDistanceGraphState start,
                   EditDistanceGraphState end)

lowerBoundFor

public int lowerBoundFor(EditDistanceGraphState state)

lowerBoundFor

public static int lowerBoundFor(CharacterCountTable tableOne,
                                CharacterCountTable tableTwo)