interface AlgorithmBase {
    differences(startText, endText): Operation[];
    distance(startText, endText): number;
}

Implemented by

Methods

  • Calculate differences between start string and end string and return the transformations list

    Parameters

    • startText: string

      The initial string.

    • endText: string

      The resulting string.

    Returns Operation[]

    The list of operations to transform the start string into the end string.

  • Calculate the distance between two strings.

    Parameters

    • startText: string

      The initial string.

    • endText: string

      The resulting string.

    Returns number

    The number of operations needed to transform the start string into the end string.