SlideShare une entreprise Scribd logo
1  sur  7
Télécharger pour lire hors ligne
Non Deterministic Finite Auotmata

                                       Abhineet Anand
                                      Assistant Professor

                              Dept. of Computer Science And Engineering,
                                     College of Engineering Studies.
                         University of Petroleum and Energy Studies, Dehradun.


                                        January 24, 2013




Abhineet Anand (UPES, Dehradun)        Non Deterministic Finite Auotmata         January 24, 2013   1/7
Outline




1   Why Nondeterminism



2   Definition




 Abhineet Anand (UPES, Dehradun)   Non Deterministic Finite Auotmata   January 24, 2013   2/7
Nondeterministic




       Nondeterministic means a choice of moves for an auotmaton.
       Set of possible moves is given rather than unique move.
       Formally, it is achieved by defining the transition function so that its
       range is a set of possible states.




 Abhineet Anand (UPES, Dehradun)   Non Deterministic Finite Auotmata   January 24, 2013   3/7
Why Nondeterministic



      A ”nondeterministic” finite automation(NFA) has the power to be in
      several states at once.
      Each NFA accepts a language that is also accepted by some DFA.
      NFA can be converted to DFA.
      Though nondeterministic is a feature which is normally not associated
      with real computers, it is an extension of the behaviour of DFA.
      Moreover, nondeterministic is an essential feature of FA, every NFA is
      equivalent to FA.




Abhineet Anand (UPES, Dehradun)   Non Deterministic Finite Auotmata   January 24, 2013   4/7
Definition

A non deterministic finite automata is a quintuple
M=(Q, Σ, δ , q0 , F)
  1    Q : Is a non-empty finite set of states presents in the finite control.
       (q0 , q1 , q2 , q3 , ...)
  2    Σ : Is a non-empty finite set of input symbols which can be passed to
       the finite state machine. (a, b, c, d, ....)
  3    q0 : Is a Starting state, One of the state in Q.
  4    F : Is a non-empty set of final states or accepting states, set of final
       states belongs to Q.
  5    δ : Is a Function called transition function that takes two argument : a
       state and input symbol, and it return a a sub set of state Q.
       that is Q x (ΣU {ϸ }) → 2Q



 Abhineet Anand (UPES, Dehradun)   Non Deterministic Finite Auotmata   January 24, 2013   5/7
Non Deterministic Finite Automata

                      The transition function is : Q x (ΣU {ϸ }) → 2Q .




Transition Table for the above automata:




 Abhineet Anand (UPES, Dehradun)    Non Deterministic Finite Auotmata     January 24, 2013   6/7
THANK YOU




Abhineet Anand (UPES, Dehradun)   Non Deterministic Finite Auotmata   January 24, 2013   7/7

Contenu connexe

Tendances

Decision properties of reular languages
Decision properties of reular languagesDecision properties of reular languages
Decision properties of reular languagesSOMNATHMORE2
 
Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Animesh Chaturvedi
 
Finite automata(For college Seminars)
Finite automata(For college Seminars)Finite automata(For college Seminars)
Finite automata(For college Seminars)Naman Joshi
 
Flag register 8086 assignment
Flag register 8086 assignmentFlag register 8086 assignment
Flag register 8086 assignmentZia3130
 
Programming basic computer
Programming basic computerProgramming basic computer
Programming basic computerMartial Kouadio
 
Finite automata-for-lexical-analysis
Finite automata-for-lexical-analysisFinite automata-for-lexical-analysis
Finite automata-for-lexical-analysisDattatray Gandhmal
 
NFA Converted to DFA , Minimization of DFA , Transition Diagram
NFA Converted to DFA , Minimization of DFA , Transition DiagramNFA Converted to DFA , Minimization of DFA , Transition Diagram
NFA Converted to DFA , Minimization of DFA , Transition DiagramAbdullah Jan
 
Push Down Automata (PDA) | TOC (Theory of Computation) | NPDA | DPDA
Push Down Automata (PDA) | TOC  (Theory of Computation) | NPDA | DPDAPush Down Automata (PDA) | TOC  (Theory of Computation) | NPDA | DPDA
Push Down Automata (PDA) | TOC (Theory of Computation) | NPDA | DPDAAshish Duggal
 
Module 2 ARM CORTEX M3 Instruction Set and Programming
Module 2 ARM CORTEX M3 Instruction Set and ProgrammingModule 2 ARM CORTEX M3 Instruction Set and Programming
Module 2 ARM CORTEX M3 Instruction Set and ProgrammingAmogha Bandrikalli
 

Tendances (20)

Program control
Program controlProgram control
Program control
 
Properties of dft
Properties of dftProperties of dft
Properties of dft
 
Decision properties of reular languages
Decision properties of reular languagesDecision properties of reular languages
Decision properties of reular languages
 
Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)
 
8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentation
 
Theory of computation and automata
Theory of computation and automataTheory of computation and automata
Theory of computation and automata
 
NFA to DFA
NFA to DFANFA to DFA
NFA to DFA
 
Finite automata(For college Seminars)
Finite automata(For college Seminars)Finite automata(For college Seminars)
Finite automata(For college Seminars)
 
Flag register 8086 assignment
Flag register 8086 assignmentFlag register 8086 assignment
Flag register 8086 assignment
 
Source coding
Source codingSource coding
Source coding
 
Programming basic computer
Programming basic computerProgramming basic computer
Programming basic computer
 
Finite automata-for-lexical-analysis
Finite automata-for-lexical-analysisFinite automata-for-lexical-analysis
Finite automata-for-lexical-analysis
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
Embedded C - Optimization techniques
Embedded C - Optimization techniquesEmbedded C - Optimization techniques
Embedded C - Optimization techniques
 
NFA Converted to DFA , Minimization of DFA , Transition Diagram
NFA Converted to DFA , Minimization of DFA , Transition DiagramNFA Converted to DFA , Minimization of DFA , Transition Diagram
NFA Converted to DFA , Minimization of DFA , Transition Diagram
 
ARM CORTEX M3 PPT
ARM CORTEX M3 PPTARM CORTEX M3 PPT
ARM CORTEX M3 PPT
 
Push Down Automata (PDA) | TOC (Theory of Computation) | NPDA | DPDA
Push Down Automata (PDA) | TOC  (Theory of Computation) | NPDA | DPDAPush Down Automata (PDA) | TOC  (Theory of Computation) | NPDA | DPDA
Push Down Automata (PDA) | TOC (Theory of Computation) | NPDA | DPDA
 
pushdown automata
pushdown automatapushdown automata
pushdown automata
 
Trees
Trees Trees
Trees
 
Module 2 ARM CORTEX M3 Instruction Set and Programming
Module 2 ARM CORTEX M3 Instruction Set and ProgrammingModule 2 ARM CORTEX M3 Instruction Set and Programming
Module 2 ARM CORTEX M3 Instruction Set and Programming
 

En vedette

Instruction, interrupts & io processing
Instruction, interrupts & io processingInstruction, interrupts & io processing
Instruction, interrupts & io processingDr. Abhineet Anand
 
Mouse interrupts (Assembly Language & C)
Mouse interrupts (Assembly Language & C)Mouse interrupts (Assembly Language & C)
Mouse interrupts (Assembly Language & C)Tech_MX
 
INTEL’S MMX TECHNOLOGY FOR ENHANCED PROCESSOR
INTEL’S MMX TECHNOLOGY FOR ENHANCED PROCESSORINTEL’S MMX TECHNOLOGY FOR ENHANCED PROCESSOR
INTEL’S MMX TECHNOLOGY FOR ENHANCED PROCESSORNikhil Musham
 
8 interrupt 8051
8 interrupt 80518 interrupt 8051
8 interrupt 8051daniemol
 
Superscalar & superpipeline processor
Superscalar & superpipeline processorSuperscalar & superpipeline processor
Superscalar & superpipeline processorMuhammad Ishaq
 
NFA or Non deterministic finite automata
NFA or Non deterministic finite automataNFA or Non deterministic finite automata
NFA or Non deterministic finite automatadeepinderbedi
 
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORINTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORGurudev joshi
 

En vedette (13)

Instruction, interrupts & io processing
Instruction, interrupts & io processingInstruction, interrupts & io processing
Instruction, interrupts & io processing
 
13 superscalar
13 superscalar13 superscalar
13 superscalar
 
Mouse interrupts (Assembly Language & C)
Mouse interrupts (Assembly Language & C)Mouse interrupts (Assembly Language & C)
Mouse interrupts (Assembly Language & C)
 
INTEL’S MMX TECHNOLOGY FOR ENHANCED PROCESSOR
INTEL’S MMX TECHNOLOGY FOR ENHANCED PROCESSORINTEL’S MMX TECHNOLOGY FOR ENHANCED PROCESSOR
INTEL’S MMX TECHNOLOGY FOR ENHANCED PROCESSOR
 
Intel processors
Intel processorsIntel processors
Intel processors
 
Superscalar processors
Superscalar processorsSuperscalar processors
Superscalar processors
 
8 interrupt 8051
8 interrupt 80518 interrupt 8051
8 interrupt 8051
 
Superscalar & superpipeline processor
Superscalar & superpipeline processorSuperscalar & superpipeline processor
Superscalar & superpipeline processor
 
NFA or Non deterministic finite automata
NFA or Non deterministic finite automataNFA or Non deterministic finite automata
NFA or Non deterministic finite automata
 
Interrupts
InterruptsInterrupts
Interrupts
 
Interrupts
InterruptsInterrupts
Interrupts
 
Dfa vs nfa
Dfa vs nfaDfa vs nfa
Dfa vs nfa
 
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORINTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSOR
 

Plus de Dr. Abhineet Anand (11)

Software Engineering Introduction
Software Engineering IntroductionSoftware Engineering Introduction
Software Engineering Introduction
 
String
StringString
String
 
Function in C
Function in CFunction in C
Function in C
 
Key concept
Key conceptKey concept
Key concept
 
Arrays
ArraysArrays
Arrays
 
C language preliminaries
C language preliminariesC language preliminaries
C language preliminaries
 
Finite automata
Finite automataFinite automata
Finite automata
 
Introduction
IntroductionIntroduction
Introduction
 
Micro program
Micro programMicro program
Micro program
 
Memory organization
Memory organizationMemory organization
Memory organization
 
Instruction code
Instruction codeInstruction code
Instruction code
 

Ndfa

  • 1. Non Deterministic Finite Auotmata Abhineet Anand Assistant Professor Dept. of Computer Science And Engineering, College of Engineering Studies. University of Petroleum and Energy Studies, Dehradun. January 24, 2013 Abhineet Anand (UPES, Dehradun) Non Deterministic Finite Auotmata January 24, 2013 1/7
  • 2. Outline 1 Why Nondeterminism 2 Definition Abhineet Anand (UPES, Dehradun) Non Deterministic Finite Auotmata January 24, 2013 2/7
  • 3. Nondeterministic Nondeterministic means a choice of moves for an auotmaton. Set of possible moves is given rather than unique move. Formally, it is achieved by defining the transition function so that its range is a set of possible states. Abhineet Anand (UPES, Dehradun) Non Deterministic Finite Auotmata January 24, 2013 3/7
  • 4. Why Nondeterministic A ”nondeterministic” finite automation(NFA) has the power to be in several states at once. Each NFA accepts a language that is also accepted by some DFA. NFA can be converted to DFA. Though nondeterministic is a feature which is normally not associated with real computers, it is an extension of the behaviour of DFA. Moreover, nondeterministic is an essential feature of FA, every NFA is equivalent to FA. Abhineet Anand (UPES, Dehradun) Non Deterministic Finite Auotmata January 24, 2013 4/7
  • 5. Definition A non deterministic finite automata is a quintuple M=(Q, Σ, δ , q0 , F) 1 Q : Is a non-empty finite set of states presents in the finite control. (q0 , q1 , q2 , q3 , ...) 2 Σ : Is a non-empty finite set of input symbols which can be passed to the finite state machine. (a, b, c, d, ....) 3 q0 : Is a Starting state, One of the state in Q. 4 F : Is a non-empty set of final states or accepting states, set of final states belongs to Q. 5 δ : Is a Function called transition function that takes two argument : a state and input symbol, and it return a a sub set of state Q. that is Q x (ΣU {ϸ }) → 2Q Abhineet Anand (UPES, Dehradun) Non Deterministic Finite Auotmata January 24, 2013 5/7
  • 6. Non Deterministic Finite Automata The transition function is : Q x (ΣU {ϸ }) → 2Q . Transition Table for the above automata: Abhineet Anand (UPES, Dehradun) Non Deterministic Finite Auotmata January 24, 2013 6/7
  • 7. THANK YOU Abhineet Anand (UPES, Dehradun) Non Deterministic Finite Auotmata January 24, 2013 7/7