Showing posts with label Theory of Computation Tutorial. Show all posts
Showing posts with label Theory of Computation Tutorial. Show all posts

TOC : Rules for Constructing Arden's Equation | Class-14

📌Highlights: Hello Friends ! In this we explain about Rules for Constructing Arden's Equation.This post cover following such as All rules of Arden's Equation, Example of converting RE to FA by applying these rules.

Let we have any Finite Automata (FA) which follow certain rules.

1. Finite Automata does not contain ∈

    Note: This is only done in DFA. If the automata is NDFA than first convert it                   into DFA then apply

    Know how to convert NDFA to DFA

TOC : Conversion of Finite Automata (FA) to Regular Expression(RE) | Class-13

📌Highlights: 

Hello Friends ! In this post we learn about the Conversion of Finite Automata (FA) to Regular Expression(RE). In this post we cover following such as Identity Rules, Arden's Theorem, By the help of Identity rules and Arden's Theorem how we convert finite automata(FA) to regular expression(RE) with the help of examples .

TOC : KNOW ABOUT NDFA TO DFA CONVERSION | Class-6

 


Let we understand the conversion of NDFA TO DFA.


We have a graph given below :

Note :
           Consider each element of power set of Q Non Deterministic Automata (NDFA) as a single state of deterministic automata (DFA).

Things to be remember :

{ q0 q1}→ curly braces are used for saperate elements.
[ q0 , q1]→ This is an single elements and formed by one or more state so here we use square bracket.

TOC : NDFA / NFA | Class-4

 


Those finite automata which can not be determine is called NDFA.


Example:

Those finite automata which have ambiguity is called NDFA.

 Ambiguity means:  If we have multiple path for same input symbol is called ambiguity.

Here in the above figure if input is given in q1 state then it has two path q2 and q3 for selection ,so it is the case of ambiguity.

TOC : CONCEPT OF EPSILON / NULL VALUE | Class-8

 


Null Input/Empty Input/ε- Moves/Epsilon Moves

ε is not a member of Î£ (set of Input Symbol)

ε is null input or nothing.

We can not used to calculate with string because it is nothing.

Example : 

         Îµa = a

         Îµaεε = a

         Îµabεεc = abc

         ÎµÎµÎµaεb = ab    etc.

Why we use Îµ :

ε gives the facility of jumping of control from one state to another without scanning any input symbol, It is just a facility.

EXAMPLE 1 :

REPRESENTATION OF FINITE AUTOMATA (FA) | Class-3

 


Finite Automata are represented by a diagram called transaction diagram.
Transaction diagram are directed graph .
Those graph which have some direction are called directed graph.

Like:


Graph is a set of vertices and edges.

CONCEPT OF FINITE AUTOMATA (FA) | Class-2


AUTOMATA :Automata stands for automatic machine. A machine which operate automatically is called automatic machine.

MACHINE : Machine is a device which receive input and produce output.

Machine are characterise in two types:

1. Physical machine.
2. Logical machine.

TOC Introduction | Class-1





TOC - Theory of Computation explain all mechanism about compiler. We can say that is a study of compiler. We will learn working of compiler their block diagram tells how compiler convert High Level Language to M/C level language what are the mechanism used for this process. We will learn about Lexical Analysis, Syntax Analysis, Intermediate Code Generation, Code Optimisation, Code Generation, Error Handling, Symbol table Management.These are the import part of compiler.