FormeleMethode/NdfaToDfaConverter.cs
/// <summary>
/// Determines whether there is a transition with the current state and the give symbol in the dfa
/// </summary>
/// <param name="currentState">State of the current.</param>
/// <param name="symbol">The symbol.</param>
/// <param name="dfa">The dfa.</param>
/// <returns>
///   <c>true</c> if [has existing routes] [the specified current state]; otherwise, <c>false</c>.
/// </returns>
Determines whether there is a transition with the current state and the give symbol in the dfa
Determines whether there is a transition with the current state and the give symbol in the dfa
private static bool HasExistingRoutes(string currentState, char symbol, Automata<string> dfa)
		{
			List<Transition<string>> trans = dfa.GetTransitions(currentState);
			foreach (Transition<string> t in trans)
			{
				if (t.GetSymbol() == symbol)
					return true;
			}
			return false;
		}
private static bool HasExistingRoutes ( string currentState , char symbol , Automata < string > dfa ) { List < Transition < string > > trans = dfa . GetTransitions ( currentState ) ; foreach ( Transition < string > t in trans ) { if ( t . GetSymbol ( ) == symbol ) return true ; } return false ; }
Determines whether there is a transition with the current state and the give symbol in the dfa
Determines whether there is a transition with the current state and the give symbol in the dfa
None
currentState
string
State of the current.
State of the current .
symbol
char
None
dfa
Automata<string>
None