ParametricDescription

abstract class ParametricDescription(w: Int, n: Int, minErrors: IntArray)

A ParametricDescription describes the structure of a Levenshtein DFA for some degree n.

There are four components of a parametric description, all parameterized on the length of the word w:

  1. The number of states: .size

  2. The set of final states: .isAccept

  3. The transition function: .transition

  4. Minimal boundary function: .getPosition

Constructors

Link copied to clipboard
constructor(w: Int, n: Int, minErrors: IntArray)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun getPosition(absState: Int): Int

Returns the position in the input word for a given state. This is the minimal boundary for the state.

Link copied to clipboard
fun isAccept(absState: Int): Boolean

Returns true if the state in any Levenshtein DFA is an accept state (final state).

Link copied to clipboard
fun size(): Int

Return the number of states needed to compute a Levenshtein DFA

Link copied to clipboard
abstract fun transition(state: Int, position: Int, vector: Int): Int

Returns the state number for a transition from the given state, assuming position and characteristic vector vector