Class DFA

java.lang.Object
  extended byDFA
Direct Known Subclasses:
FST

public class DFA
extends java.lang.Object

This class implements deterministic complete finite automata.


Constructor Summary
DFA(int n, Alphabet a)
          creates a DFA with n states and alphabet a.
DFA(int n, int k)
          creates a DFA with n states and k letters.
 
Method Summary
static void main(java.lang.String[] args)
           
 DFA minimize(Minimizer m)
          Minimizes the automaton using the method m.
 int next(int p, java.lang.String w)
          returns the state reached from state p after reading w.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DFA

public DFA(int n,
           int k)
creates a DFA with n states and k letters.


DFA

public DFA(int n,
           Alphabet a)
creates a DFA with n states and alphabet a.

Method Detail

next

public int next(int p,
                java.lang.String w)
returns the state reached from state p after reading w.

Parameters:
p - starting state
w - input word
Returns:
state reached

minimize

public DFA minimize(Minimizer m)
Minimizes the automaton using the method m.


toString

public java.lang.String toString()

main

public static void main(java.lang.String[] args)