Transparency No. 1 Formal Language and Automata Theory Homework 6.

Slides:



Advertisements
Similar presentations
Variants of Turing machines
Advertisements

Transparency No. 2-1 Formal Language and Automata Theory Homework 3.
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Pages COMPUTABILITY THEORY.
CFG => PDA Sipser 2 (pages ).
CFG => PDA Sipser 2 (pages ). CS 311 Fall Formally… A pushdown automaton is a sextuple M = (Q, Σ, Γ, δ, q 0, F), where – Q is a finite set.
Costas Busch - RPI1 Pushdown Automata PDAs. Costas Busch - RPI2 Pushdown Automaton -- PDA Input String Stack States.
Courtesy Costas Busch - RPI1 Pushdown Automata PDAs.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Fall 2004COMP 3351 Turing Machines. Fall 2004COMP 3352 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 Lecture 16 FSA’s –Defining FSA’s –Computing with FSA’s Defining L(M) –Defining language class LFSA –Comparing LFSA to set of solvable languages (REC)
Courtesy Costas Busch - RPI1 Turing Machines. Courtesy Costas Busch - RPI2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Turing Machines.
Fall 2004COMP 3351 Pushdown Automata PDAs. Fall 2004COMP 3352 Pushdown Automaton -- PDA Input String Stack States.

Fall 2006Costas Busch - RPI1 Pushdown Automata PDAs.
Transparency No. P3C1-1 Turing Machines PART III Turing Machines and Effective Computability.
CS 490: Automata and Language Theory Daniel Firpo Spring 2003.
Costas Busch - RPI1 Turing Machines. Costas Busch - RPI2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
CS5371 Theory of Computation Lecture 8: Automata Theory VI (PDA, PDA = CFG)
Prof. Busch - LSU1 Pushdown Automata PDAs. Prof. Busch - LSU2 Pushdown Automaton -- PDA Input String Stack States.
Prof. Busch - LSU1 Turing Machines. Prof. Busch - LSU2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Fall 2005Costas Busch - RPI1 Pushdown Automata PDAs.
1 Pushdown Automata PDAs. 2 Pushdown Automaton -- PDA Input String Stack States.
CS 3240: Languages and Computation Pushdown Automata & CF Grammars NOTE: THESE ARE ONLY PARTIAL SLIDES RELATED TO WEEKS 9 AND 10. PLEASE REFER TO THE TEXTBOOK.
Turing Machines A more powerful computation model than a PDA ?
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 8 Mälardalen University 2010.
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
CS490 Presentation: Automata & Language Theory Thong Lam Ran Shi.
Pushdown Automata CS 130: Theory of Computation HMU textbook, Chap 6.
Pushdown Automata (PDAs)
Transparency No. P3C1-1 Turing Machines PART III Turing Machines and Effective Computability.
Introduction to CS Theory Lecture 15 –Turing Machines Piotr Faliszewski
Push-down Automata Section 3.3 Fri, Oct 21, 2005.
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Part 1 – Pages COMPUTABILITY THEORY.
Complexity and Computability Theory I Lecture #11 Instructor: Rina Zviel-Girshin Lea Epstein.
Homework 4 due 11/25.
Finite State Machines 1.Finite state machines with output 2.Finite state machines with no output 3.DFA 4.NDFA.
Formal Languages, Automata and Models of Computation
1 Section 13.1 Turing Machines A Turing machine (TM) is a simple computer that has an infinite amount of storage in the form of cells on an infinite tape.
Transparency No. 2-1 Formal Language and Automata Theory Homework 2.
1 Turing Machines and Equivalent Models Section 13.1 Turing Machines.
Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1 Chapter 2 Context-Free Languages Some slides are in courtesy.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Transparency No. 1 Formal Language and Automata Theory Homework 5.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 12 Mälardalen University 2007.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 8 Mälardalen University 2011.
CS 154 Formal Languages and Computability March 10 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
CS6800 Advance Theory of Computation Spring 2016 Nasser Alsaedi
Lecture 11  2004 SDU Lecture7 Pushdown Automaton.
Pushdown Automata - like NFA-  but also has a stack - transition takes the current state, the current input symbol, and the top-of-the-stack symbol (which.
6. Pushdown Automata CIS Automata and Formal Languages – Pei Wang.
Formal Languages, Automata and Models of Computation
Busch Complexity Lectures: Turing Machines
CSE 105 theory of computation
Pushdown Automata PDAs
Pushdown Automata PDAs
Pushdown Automata PDAs
Pushdown Automata PDAs
CS 461 – Sept. 28 Section 2.2 – Pushdown Automata { 0n 1n }
Turing Machines 2nd 2017 Lecture 9.
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
Recap lecture 37 New format for FAs, input TAPE, START, ACCEPT , REJECT, READ states Examples of New Format of FAs, PUSHDOWN STACK , PUSH and POP states,
Variants of Turing machines
CSE 105 theory of computation
CSE 105 theory of computation
Presentation transcript:

Transparency No. 1 Formal Language and Automata Theory Homework 6

Homework Transparency No. 2 PDA 1.Design a PDA (accepting by empty stack) to accept the language L 1 = { x  {a,b}* | x contains the same number of a's and b's. 1.1 Sketch your pseudo code 1.2 Draw its transition diagram 1.3 Give a formal definition of the machine. Namely, suppose the machine is M = (Q, , , ,s, , F), then you should list the content of each component of the machine.

Homework Transparency No. 3 PDA 2. Design a PDA to accept the language L 2 = { xy  {a,b}* | |x| = |y| but x  y }. 1.1 Sketch your pseudo code 1.2 Draw its transition diagram 1.3 Give a formal definition of the machine. Namely, suppose the machine is M = (Q, , , ,s, , F), then you should list the content of each component of the machine. Also remember to specify that your PDA accepts either by empty stack or by final state.

Homework Transparency No. 4 Equivalence of CFG and PDA 3.Find a single-state PDA M = (Q, , , ,s, , { }) which accepts by empty stack and is equivalent to the following CFG: S  ABS | AB A  aA | a B  bA 4.Let PDA M2 = ({p,q}, {0,1}, {A, X}, , p, X, {q}) where X is the bottom symbol, and  is given as follows: (p, 0, X)  (p,AX), (q,1, A)  (q,  ) (p, 0, A)  (p, AA), (q, , A)  (q,  ) (p. 1, A)  (q,  ),(q, , X)  (q,  ). Suppose M2 accepts by final state and empty stack, i.e., x is accepted iff (p, x, X)  * (q, ,  ). Find a CFG equivalent to M2.

Homework Transparency No. 5 STM programming 5. Design a standard Turing machine (TM) M to accept the language of all palindromes P = { x ∈ {0,1}* | x = reverse(x) }. On input x ∈ {0,1}* of length n, the machine will start its execution on the initial configuration (s, [x, 0) and ends on the accept state t with the final configuration (t,[  …  …, -). The following is an informal description for M: 1.R (i.e., Move right ) 2.case(input) of { 3. ‘  ’(blank) => goto_t (accept) 4. ‘0’ => 5. ‘  ’ (i.e., write  ) R Move_right_until_  L(i.e., move left) 6. case (input) of { 7. ‘  ’(blank) => goto t (accept) 8. ‘0’ => ‘  ’ L (Move_left_until_  ) goto_1 9. ‘1’, ‘[‘ => goto_r (reject) } 10. ‘1’ => ‘  ’ R Move_right_until_  L 11. case (input) of { 12. ‘  ’(blank) => goto_t (accept) 13. ‘1’ => ‘  ’ L Move_left_until_  goto _1 14. ‘0’, ‘[‘ => goto_r (reject) } 15.} t : halt r : halt

Homework Transparency No translate the above description into (flow-chart-like) state-transition diagram 5.2 Write your formal result using the following table: state\  \ symbol [01  ss tFhalt rFhalt

Homework Transparency No. 7 CSL and CSG 6. The language A = {xx | x  {a,b}* } is not context-free but context-sensitive. Design a context-sensitive grammar(CSG) for it.