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

Regular Expression to Finite Automata
Regular Expression to Finite AutomataRegular Expression to Finite Automata
Regular Expression to Finite AutomataArchana Gopinath
 
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
 
Automata theory - NFA ε to DFA Conversion
Automata theory - NFA ε to DFA ConversionAutomata theory - NFA ε to DFA Conversion
Automata theory - NFA ε to DFA ConversionAkila Krishnamoorthy
 
Closure properties of context free grammar
Closure properties of context free grammarClosure properties of context free grammar
Closure properties of context free grammarAfshanKhan51
 
Minimization of DFA
Minimization of DFAMinimization of DFA
Minimization of DFAkunj desai
 
Dijkstra algorithm a dynammic programming approach
Dijkstra algorithm   a dynammic programming approachDijkstra algorithm   a dynammic programming approach
Dijkstra algorithm a dynammic programming approachAkash Sethiya
 
NFA or Non deterministic finite automata
NFA or Non deterministic finite automataNFA or Non deterministic finite automata
NFA or Non deterministic finite automatadeepinderbedi
 
Moore and mealy machine
Moore and mealy machineMoore and mealy machine
Moore and mealy machineMian Munib
 
Introduction TO Finite Automata
Introduction TO Finite AutomataIntroduction TO Finite Automata
Introduction TO Finite AutomataRatnakar Mikkili
 
1.7. eqivalence of nfa and dfa
1.7. eqivalence of nfa and dfa1.7. eqivalence of nfa and dfa
1.7. eqivalence of nfa and dfaSampath Kumar S
 
Computer Graphic - Lines, Circles and Ellipse
Computer Graphic - Lines, Circles and EllipseComputer Graphic - Lines, Circles and Ellipse
Computer Graphic - Lines, Circles and Ellipse2013901097
 
Finite Automata in compiler design
Finite Automata in compiler designFinite Automata in compiler design
Finite Automata in compiler designRiazul Islam
 

Tendances (20)

Regular Expression to Finite Automata
Regular Expression to Finite AutomataRegular Expression to Finite Automata
Regular Expression to Finite Automata
 
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
 
Automata theory - NFA ε to DFA Conversion
Automata theory - NFA ε to DFA ConversionAutomata theory - NFA ε to DFA Conversion
Automata theory - NFA ε to DFA Conversion
 
Closure properties of context free grammar
Closure properties of context free grammarClosure properties of context free grammar
Closure properties of context free grammar
 
Minimization of DFA
Minimization of DFAMinimization of DFA
Minimization of DFA
 
Push down automata
Push down automataPush down automata
Push down automata
 
Dijkstra algorithm a dynammic programming approach
Dijkstra algorithm   a dynammic programming approachDijkstra algorithm   a dynammic programming approach
Dijkstra algorithm a dynammic programming approach
 
NFA or Non deterministic finite automata
NFA or Non deterministic finite automataNFA or Non deterministic finite automata
NFA or Non deterministic finite automata
 
Branch and bound
Branch and boundBranch and bound
Branch and bound
 
Nfa vs dfa
Nfa vs dfaNfa vs dfa
Nfa vs dfa
 
Moore and mealy machine
Moore and mealy machineMoore and mealy machine
Moore and mealy machine
 
Introduction TO Finite Automata
Introduction TO Finite AutomataIntroduction TO Finite Automata
Introduction TO Finite Automata
 
1.7. eqivalence of nfa and dfa
1.7. eqivalence of nfa and dfa1.7. eqivalence of nfa and dfa
1.7. eqivalence of nfa and dfa
 
Undecidabality
UndecidabalityUndecidabality
Undecidabality
 
Computer Graphic - Lines, Circles and Ellipse
Computer Graphic - Lines, Circles and EllipseComputer Graphic - Lines, Circles and Ellipse
Computer Graphic - Lines, Circles and Ellipse
 
Context free grammar
Context free grammarContext free grammar
Context free grammar
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 
Pda to cfg h2
Pda to cfg h2Pda to cfg h2
Pda to cfg h2
 
Curve clipping
Curve clippingCurve clipping
Curve clipping
 
Finite Automata in compiler design
Finite Automata in compiler designFinite Automata in compiler design
Finite Automata in compiler design
 

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
 
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORINTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORGurudev joshi
 

En vedette (12)

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
 
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