- Boettke Syntax and the Turing Test
- Bottom Up Parsing
- Natural Language Processing
- Grammar and Languages
- CSTest1
- Mca Part III(Sem v to Vi)
- 4MCA TOC QB
- Free Video Lectures for MCA
- exam2
- To c Questions
- syllabus 7
- LR Grammars
- 3-Describing Syntax and Semantics
- Automata 3
- Formal Languages and Automata Theory QB
- Datamining Pres
- CMPENEE454 Project1Report MatthewMcTaggart PeterRancourt
- Pgcet 2013 Queans Full
- unix Strings
- Course List for BS Mechanical Engineering
- Syntactic Analysis
- pdfNew_BTechCSIT
- EE- Factors and Their Use
- Financial Tables Present and Future Value Tables
- Survey
- SCJP
- Adaptive PID Controller for Dc Motor Speed Control
- cs243s3
- Prolog Examples
- POW 2
- Design of a Completely Wireless Security Camera System
- 00726223
- 00726223
- Problem_Set_03

Context Free or Not Determine and prove whether each of the following languages is Context Free or not. a. b. c. d. {1 0 1 0 1 0 | i,j,k > 0}. {w#x | w is a substring of x, where w, x are in {0, 1}*}. i i j i {0 1 0 1 | , i,j > 0}. n n m Extra Credit: The complement of {(0 1 ) | m, n > 0}.

k i i j j k

2. Decision Algorithms Describe algorithms to decide the problems below. a. b. c. d. Does a given Deterministic Pushdown Automaton generate (0+1)*? Given a CFG and a string z in its language, does the string have 2 distinct derivation trees? (Note: your algorithm does not test whether or not the grammar is ambiguous! For that you would have to test every string.) Text: 4.12: Show that the problem of testing whether a CFG generates some string in 1* is decidable. Extra Credit: Text 4.13: Show that the problem of testing whether a CFG generates all strings in 1* is decidable.

3. Closure Problems for CFL’s a. Explain why the intersection of a regular language and a CFL must be a CFL (i.e. CFL's are closed under intersection with regular sets). You should illustrate your argument by constructing the machine that generates L intersected with R, where L = 0n1n and R = (0+1)*110(0+1)*. Show that the intersection of a regular language and a CFL is not necessarily regular (though it must be a CFL - see the previous problem). Let L be some regular set in which all strings happen to have length equal to a multiple of three. Let Twist3(L) be the set of all strings in L where every three symbols are reversed. For example if L = {aag, cttgta, ttggagagc, ...} then Twist3(L) = {gaa, ttcatg, gttgagcga, ...}. Explain why Twist3(L) is a CFL. You should illustrate your argument by constructing the machine that generates Twist3(L), where L = (0+1)*110(0+1)*. Extra Credit: Is Twist3(L) regular if L is regular?

b. c.

d.

4. Parsing and the CYK Decision Algorithm a. Exhibit the table you get by doing the CYK algorithm on the strings 00000 and 000000 for the grammar below.

¡

b.

Write a NPDA that accepts exactly what the grammar above generates.

£

¢

S B

AB | BC CC | 1

A C

BA | 0 AB | 0

7. a. Text 3. d.b. c. Text 3. Turing Recognition and Turning Decidability. Text 3. . Turing Machine Design a. Text 3. Text 3. 9.b and c are interpreted as positive binary integers. b. ¥ ¤ 6. for it to be bound by the pumping lemma? Explain.14 a.14 d. Design a TM program that accepts the language a#b#c. d.1 c.1}*. Design a TM that enumerates the language of odd integers written in binary. where a. Design a TM that accepts the language of odd integers written in binary. a. 8. Text 3. Extra Credit: Chomsky-3 Normal Form A grammar is in C3NF if every production is of the form A BCD or A b.2 d.15 c. then how long does a string have to be. Text 3. If a C3NF grammar has n non-terminals. Turing Machine Basics a. c. Can every CNF grammar be put into C3NF? Explain why or why not?. d. Think about how tedious it would be to design a TM that enumerates all primes in binary. Text 3. where a.5. b. c. b. then the set must be regular.2 a.1 a. Extra Credit: A Problem that is Easier than it Seems Show that if every subset of a set is a CFL.15 a. b. and a+b=c. c.c are in {0. How many production steps does a C3NF grammar use to generate a string of length n? Explain.

- Boettke Syntax and the Turing TestUploaded byPaul Cockshott
- Bottom Up ParsingUploaded byparoo7k
- Natural Language ProcessingUploaded byridham
- Grammar and LanguagesUploaded byRajendranbehappy
- CSTest1Uploaded byHajiram Beevi
- Mca Part III(Sem v to Vi)Uploaded byAmarpreet Singh
- 4MCA TOC QBUploaded byvijaykrvishwakarma
- Free Video Lectures for MCAUploaded byedholecom
- exam2Uploaded byJonathan Ng
- To c QuestionsUploaded bySeaton Harns
- syllabus 7Uploaded byAman Nagi
- LR GrammarsUploaded byMonika Mishra
- 3-Describing Syntax and SemanticsUploaded bymeryamreza
- Automata 3Uploaded bywest_lmn
- Formal Languages and Automata Theory QBUploaded byNiladri Dey
- Datamining PresUploaded byJhon Calderon Cari
- CMPENEE454 Project1Report MatthewMcTaggart PeterRancourtUploaded byMatthewMcT
- Pgcet 2013 Queans FullUploaded byJAAPA
- unix StringsUploaded byAnubhav Mishra
- Course List for BS Mechanical EngineeringUploaded byRonald George
- Syntactic AnalysisUploaded byIvanKiritGeentilal
- pdfNew_BTechCSITUploaded byJordan Smith
- EE- Factors and Their UseUploaded byIng Kwesi Kissiedu
- Financial Tables Present and Future Value TablesUploaded byRamesh Soni
- SurveyUploaded bynine7t
- SCJPUploaded byKatinti Yellaiah
- Adaptive PID Controller for Dc Motor Speed ControlUploaded byHilal Permana
- cs243s3Uploaded byThiago Furtado
- Prolog ExamplesUploaded byVenkata Krishna
- POW 2Uploaded byAmaya Holliday