Illustrating the power of “choose” and “forall” generating all and only the pairs vw  A* of different words v,w of same length (i.e. v  w and |v| = |w|

Slides:



Advertisements
Similar presentations
Finite-State Machines with No Output Ying Lu
Advertisements

Language and Automata Theory
4b Lexical analysis Finite Automata
Complexity and Computability Theory I Lecture #4 Rina Zviel-Girshin Leah Epstein Winter
8/27/2009 Sofya Raskhodnikova Intro to Theory of Computation L ECTURE 2 Theory of Computation Finite Automata Operations on languages Nondeterminism L2.1.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 3 School of Innovation, Design and Engineering Mälardalen University 2012.
Finite Automata Section 1.1 CSC 4170 Theory of Computation.
Introduction to Computability Theory
1 Introduction to Computability Theory Lecture3: Regular Expressions Prof. Amos Israeli.
Intro to DFAs Readings: Sipser 1.1 (pages 31-44) With basic background from Sipser 0.
Introduction to Computability Theory
Intro to DFAs Readings: Sipser 1.1 (pages 31-44) With basic background from Sipser 0.
Lecture 3UofH - COSC Dr. Verma 1 COSC 3340: Introduction to Theory of Computation University of Houston Dr. Verma Lecture 3.
Courtesy Costas Busch - RPI1 Non Deterministic Automata.
Languages. A Language is set of finite length strings on the symbol set i.e. a subset of (a b c a c d f g g g) At this point, we don’t care how the language.
Finite Automata Finite-state machine with no output. FA consists of States, Transitions between states FA is a 5-tuple Example! A string x is recognized.
Fall 2006Costas Busch - RPI1 Deterministic Finite Automata And Regular Languages.
Introduction to the Theory of Computation John Paxton Montana State University Summer 2003.
1 Finite Automata. 2 Finite Automaton Input “Accept” or “Reject” String Finite Automaton Output.
Languages. A Language is set of finite length strings on the symbol set i.e. a subset of (a b c a c d f g g g) At this point, we don’t care how the language.
1 Non-Deterministic Finite Automata. 2 Alphabet = Nondeterministic Finite Automaton (NFA)
Nondeterminism (Deterministic) FA required for every state q and every symbol  of the alphabet to have exactly one arrow out of q labeled . What happens.
Regular Languages A language is regular over  if it can be built from ;, {  }, and { a } for every a 2 , using operators union ( [ ), concatenation.
Finite-State Machines with No Output Longin Jan Latecki Temple University Based on Slides by Elsa L Gunter, NJIT, and by Costas Busch Costas Busch.
Finite-State Machines with No Output
Basics of automata theory
THEORY OF COMPUTATION 08 KLEENE’S THEOREM.
Cs3102: Theory of Computation Class 4: Nondeterminism Spring 2010 University of Virginia David Evans TexPoint fonts used in EMF. Read the TexPoint manual.
REGULAR LANGUAGES.
Theory of Languages and Automata
XML Data Management 10. Deterministic DTDs and Schemas Werner Nutt.
2. Scanning College of Information and Communications Prof. Heejin Park.
4b 4b Lexical analysis Finite Automata. Finite Automata (FA) FA also called Finite State Machine (FSM) –Abstract model of a computing entity. –Decides.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 3 Mälardalen University 2010.
Copyright © Curt Hill Finite State Automata Again This Time No Output.
Modeling Computation: Finite State Machines without Output
UNIT - I Formal Language and Regular Expressions: Languages Definition regular expressions Regular sets identity rules. Finite Automata: DFA NFA NFA with.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 10 Automata, Grammars and Languages.
Transparency No. 2-1 Formal Language and Automata Theory Homework 2.
using Deterministic Finite Automata & Nondeterministic Finite Automata
Nondeterministic Finite Automata (NFAs). Reminder: Deterministic Finite Automata (DFA) q For every state q in Q and every character  in , one and only.
Algorithms for hard problems Automata and tree automata Juris Viksna, 2015.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen.
Regular Languages Chapter 1 Giorgi Japaridze Theory of Computability.
1 Chapter Pushdown Automata. 2 Section 12.2 Pushdown Automata A pushdown automaton (PDA) is a finite automaton with a stack that has stack operations.
Deterministic Finite Automata Nondeterministic Finite Automata.
1 Finite Automata. 2 Introductory Example An automaton that accepts all legal Pascal identifiers: Letter Digit Letter or Digit "yes" "no" 2.
Theory of Computation Automata Theory Dr. Ayman Srour.
Recap: Nondeterministic Finite Automaton (NFA) A deterministic finite automaton (NFA) is a 5-tuple (Q, , ,s,F) where: Q is a finite set of elements called.
CSCI 2670 Introduction to Theory of Computing
Non Deterministic Automata
CSC312 Automata Theory Chapter # 5 by Cohen Finite Automata
Nondeterministic Finite Automata
Solution Prove by induction the following statement:
CSC 4170 Theory of Computation Nondeterminism Section 1.2.
Some slides by Elsa L Gunter, NJIT, and by Costas Busch
Non-Deterministic Finite Automata
COSC 3340: Introduction to Theory of Computation
Non-Deterministic Finite Automata
CSE322 Definition and description of finite Automata
Non Deterministic Automata
NFA vs DFA DFA: For every state q in S and every character  in , one and only one transition of the following form occurs:  q q’ NFA: For every state.
CSE322 Minimization of finite Automaton & REGULAR LANGUAGES
Instructor: Aaron Roth
CSC312 Automata Theory Chapter # 5 by Cohen Finite Automata
CSC 4170 Theory of Computation Nondeterminism Section 1.2.
Chapter 1 Regular Language
Chapter # 5 by Cohen (Cont…)
CHAPTER 1 Regular Languages
Non Deterministic Automata
Presentation transcript:

Illustrating the power of “choose” and “forall” generating all and only the pairs vw  A* of different words v,w of same length (i.e. v  w and |v| = |w| ) choose n, i with i < n choose a,b  A with a  b v(i) := a w(i) := b forall j < n, j  i choose a,b  A v(j) : = a w(j) := b When all possible choices are realized, the set of reachable states vw of this ASM, started with (say) a b for some a  b, is the set of all vw with v  w and |v| = |w|.

const v, w var n, i, j :  var a, b :  Slide cour tesy of W. Rei sig An equiv Petri net definition for generating one word pair through transition q: at place B 1 mark is produced for a  b at place C n-1 marks are produced for arbitrary letters

const v, w var n, i, j :  var a, b, x 1,..., x n, y 1,..., y n :  Adding the iteration construct Slide cour tesy of W. Rei sig when a word has been completed, it is deleted to produce the next word

Illustrating the power of “forall” and “choose” generating the words over alphabet {0,1} of length at least n with a 1 in the n-th place, i.e. the words of form v1w  {0,1} n-1 1 {0,1}* forall n  Nat choose v  {0,1} n-1 choose w  {0,1}* out(n) := v1w NB. For each n, there is a non-deterministic FSM with O(n) states which accepts the set {0,1} n-1 1 {0,1}*, but every deterministic FSM accepting this set has at least 2 n states.

The power of non-determinism Let L n = { v # w | v  w and |v| = |w| = n}. Exercise. Show that for each n, L n can be accepted by a non-deterministic finite automaton with O(n 2 ) states. Every unambiguous automaton accepting L n needs at least 2 n states. –See C. M. R. Kintala and K-Y Pun and D. Wotschke: Concise representations of regular languages by degree and probabilistic finite automata. In: Math. Systems Theory 26 (4) 1993, 379—395.