Class FST

java.lang.Object
  extended byDFA
      extended byFST

public class FST
extends DFA


Constructor Summary
FST(int n, Alphabet a)
          creates an FST with n states and alphabet a
 
Method Summary
 java.lang.String[] lcp()
          Returns the vector of longest common prefixes of an FST.
 java.lang.String lcp(java.lang.String s, java.lang.String t)
          Returns the longest common prefix of the strings s and t.
static void main(java.lang.String[] args)
           
 void normalize()
          Normalizes the FST, pushing the output to the left.
 void refine(java.lang.String[] m)
          Realizes the iteration m=Um+v with operations in the semiring (lcp,.,0,\e) where m is a vector of strings, U the matrix of outputs and v the vector of terminal outputs.
 java.lang.String toString()
           
 
Methods inherited from class DFA
minimize, next
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FST

public FST(int n,
           Alphabet a)
creates an FST with n states and alphabet a

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class DFA

lcp

public java.lang.String lcp(java.lang.String s,
                            java.lang.String t)
Returns the longest common prefix of the strings s and t.

Parameters:
s - a string
t - a string
Returns:
the longest common prefix of the strings s and t.

refine

public void refine(java.lang.String[] m)
Realizes the iteration m=Um+v with operations in the semiring (lcp,.,0,\e) where m is a vector of strings, U the matrix of outputs and v the vector of terminal outputs.

Parameters:
m - an array of strings or 0 (=null)
Returns:
um+v

lcp

public java.lang.String[] lcp()
Returns the vector of longest common prefixes of an FST. lcp[p] is the longest common prefix of the strings star(p,w)

Returns:
the array of longest common prefixes

normalize

public void normalize()
Normalizes the FST, pushing the output to the left.


main

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