## Explain the application of regular expression

 Search commands such as the UNIX grep or equivalent commands for finding strings that one sees in Web browsers or text-formatting systems. These systems use a regular-expression-like notation for describing…

## Explain finite automata with epsilon transition

An informal treatment of €-NFA’s, using transition diagrams with f allowed as a label. In the examples to follow, think of the automaton as accepting those sequences of labels along…

## Short note on application of context free grammar

Well-formed parenthesesThe canonical example of a context free grammar is parenthesis matching, which is representative of the general case. There are two terminal symbols “(” and “)” and one nonterminal…

## Define grammar? Explain Chomsky Hierarchy? Give an example

A formal grammar of this type consists of:a finite set of production rules (left-hand side right-hand side) where each side consists of a sequence of these symbolsa finite set of…

## Algorithm for DFA Minimization using Myphill-Nerode Theorem

Input : DFAOutput:  Minimized DFAStep 1: StartStep 2:  Draw a table for all pairs of states (Qi, Qj) not necessarily connected directly [All are unmarked initially]Step 3:  Consider every state…

## Solved problems on DFA and NFA

Obtain a DFA to accept strings of a’s and b’s starting with the string ab Draw a DFA to accept string of 0’s and 1’s ending with the string 011…

## Procedure to convert NFA to DFA

Let A = (Qx, Σ, δx, q0, Fx) be an NDFA which accepts the language L(A). We have to design an equivalent DFA B = (Qy, Σ, δy, q0, Fy)…

## Difference between DFA and NFA

Deterministic finite automaton (DFA):The transition from a state is to a single particular next state for each input symbol. Hence it is called deterministic.Empty string transitions are not seen in…

## Define DFA and NFA

Deterministic finite automaton (DFA)—also known as deterministic finite state machine—is a finite state machine that accepts/rejects finite strings of symbols and only produces a unique computation (or run) of the…

## Applications of Finite Automata

String ProcessingConsider finding all occurrences of a short string (pattern string) within a long string (text string). This can be done by processing the text through a DFA: the DFA…