Property | Type | Description | |
---|---|---|---|
N | int | ||
StateCount | int | ||
VectorCount | int | ||
VectorLength | int | ||
W | int | ||
Word | string |
Method | Description | |
---|---|---|
AcceptWord ( string word ) : bool |
Check if this automaton accepts given word (i.e. edit distance between Word and word <= N)
|
|
GetCharacteristicVector ( char letter, int position ) : int |
Gets the characteristic vector for given letter and position.
|
|
GetNextState ( int vector ) : |
Evaluate next automaton state (without actual transition)
|
|
IsAcceptState ( int state, int offset ) : bool |
Check if given state is the accept state for given offset
|
|
LevTAutomataImitation ( string word, int n ) : System |
Initializes a new instance of the LevTAutomataImitation class.
|
|
LoadState ( int state, int offset ) : void |
Loads automaton state and offset.
|
|
NextState ( char letter ) : void |
Make transition to the next state for the given letter
|
|
NextState ( int vector ) : void |
Make transition to the next state for the given characteristic vector
|
Method | Description | |
---|---|---|
UpdateMatricies ( ) : void |
Select current state transition matrix and offset increment matrix
|
public AcceptWord ( string word ) : bool | ||
word | string | Word to check |
return | bool |
public GetCharacteristicVector ( char letter, int position ) : int | ||
letter | char | Letter. |
position | int | Position. |
return | int |
public GetNextState ( int vector ) : |
||
vector | int | Characteristic vector. |
return |
public IsAcceptState ( int state, int offset ) : bool | ||
state | int | State. |
offset | int | Offset. |
return | bool |
public LevTAutomataImitation ( string word, int n ) : System | ||
word | string | Word |
n | int | Maximum edit distance |
return | System |
public LoadState ( int state, int offset ) : void | ||
state | int | State. |
offset | int | Offset. |
return | void |