28 views

Uploaded by Paul Jones

Attribution Non-Commercial (BY-NC)

- new map data
- 1601.07724
- String Manipulation - Copy
- Shieber_PartiallyOrdered
- Optimal Cost and Policy for a Markovian Replacement Problem
- Erp 1syllabus
- Assignment 1 Answers
- Scheme & Syllabus CT GU20082013
- An Application of Pattern matching for Motif Identification
- Chapter 6
- Obj
- FLAT Course Plan
- Lexical Analyzer
- Assignment 6
- assignment3
- 9. Turing Machines
- Regular Expresion Slider
- Characterizing and Detecting Integrity Issues in.pdf
- Matroid a
- Math Assignment

You are on page 1of 7

NAME: __________________________________________________________________________

RUID:___________________________________________________________________________

Electronic Devices are not permitted during the quiz. These include but are not restricted to calculators,

computers and cell phones.

No communication between students or anyone outside of class is permitted during the quiz.

Textbooks, notes and any other written materials are not permitted during the quiz.

INSTRUCTED TO DO SO

production set P = { S ABa, S Ba, A aB, B ab }, start symbol S, and

terminal element set T = { a, b }. For each of the following, write True if it is derivable

from S, otherwise write False.

_____________________ a)

_____________________ b)

_____________________ c)

ab

_____________________ d)

abb

_____________________ e)

aba

_____________________ f)

ba

_____________________ g)

baab

_____________________ h)

aababa

_____________________ i)

aaa

_____________________ j)

ababa

a) Find a set of exactly 2 productions that produces {12n | n > 0}.

Use only nonterminal S, where S is the start symbol.

Use only nonterminals S and A, where S is the start symbol.

Use nonterminals S and A, where S is the start symbol.

sets P, determine whether G = (V, T, S, P) is a

A. Type 0 grammar, but not a type 1 grammar

B. Type 1 (context-sensitive) grammar, but not a type 2 grammar

C. Type 2 (context-free) grammar, but not a type 3 grammar

D. Type 3 (regular) grammar

______________ b) S aA, A a, A b

______________ c) S ABa, AB a

______________ e) S bA, A B, B a

______________ g) S bA, A b, S

______________ j) S A, A B, B

T = { a, b }. The set of productions P in Backus-Naur form are:

S ::= AA | AB

A ::= aB | ab

B ::= b

Determine whether each of the following is derivable starting from S. Write True if it is derivable

and False if it is not derivable.

_____________________ a)

_____________________ b)

_____________________ c)

aa

_____________________ d)

ab

_____________________ e)

aba

_____________________ f)

abb

_____________________ g)

baa

_____________________ h)

abaab

_____________________ i)

abab

_____________________ j)

ababa

5. A palindrome is a string that reads the same backward as it does forward. In other words, a

palindrome is string w, where w = wR, where wR is the reversal of the string w. Find a context-free

grammar that generates the set of all palindromes over the alphabet {0, 1}. List the productions

in the space provided below. Use only five productions and only one nonterminal, S.

Scratch Paper

- new map dataUploaded byragup70
- 1601.07724Uploaded byjaber ghazouani
- String Manipulation - CopyUploaded byHasan
- Shieber_PartiallyOrderedUploaded byPebri Joinkun
- Optimal Cost and Policy for a Markovian Replacement ProblemUploaded byesernik
- Erp 1syllabusUploaded byRishi Thakkar
- Assignment 1 AnswersUploaded byvkthik
- Scheme & Syllabus CT GU20082013Uploaded bypremsagar
- An Application of Pattern matching for Motif IdentificationUploaded byAI Coordinator - CSC Journals
- Chapter 6Uploaded byPhan D. Danh
- ObjUploaded byJaswant Malviya
- FLAT Course PlanUploaded byLavanya_123
- Lexical AnalyzerUploaded byNeoaz Mahfuz
- Assignment 6Uploaded byKishore Kumar
- assignment3Uploaded byWilliam Porter
- 9. Turing MachinesUploaded byPrashant Jain
- Regular Expresion SliderUploaded byPKDianna
- Characterizing and Detecting Integrity Issues in.pdfUploaded byAbdul Hafeez Khan
- Matroid aUploaded bymars
- Math AssignmentUploaded byClerry Samuel
- Theoremizing ParadoxesUploaded bysaesal
- Lecture 10Uploaded bym91e

- 20121108_quiz_6bUploaded byPaul Jones
- 20121206_quiz_10_solutionsUploaded byPaul Jones
- 20121206_quiz_10Uploaded byPaul Jones
- 20121129_quiz_9bUploaded byPaul Jones
- 20121025 Quiz 4r SolutionsUploaded byPaul Jones
- 20121011 Quiz 4b SolutionsUploaded byPaul Jones
- 20121129 Quiz 9b SolutionsUploaded byPaul Jones
- 20121129 Quiz 9a SolutionsUploaded byPaul Jones
- 20121011_quiz_4a.pdfUploaded byPaul Jones
- 20121011_quiz_4bUploaded byPaul Jones
- 20121120_quiz_8bUploaded byPaul Jones
- 20121120 Quiz 8a SolutionsUploaded byPaul Jones
- 20121025_quiz_4rUploaded byPaul Jones
- 20121115_quiz_7bUploaded byPaul Jones
- 20121115 Quiz 7b SolutionsUploaded byPaul Jones
- 20121115_quiz_7aUploaded byPaul Jones
- 20121115 Quiz 7a SolutionsUploaded byPaul Jones
- 20121108 Quiz 6b SolutionsUploaded byPaul Jones
- 20121108_quiz_6aUploaded byPaul Jones
- 20121108 Quiz 6a SolutionsUploaded byPaul Jones
- 20121018_quiz_5aUploaded byPaul Jones
- 20121018 Quiz 5b SolutionsUploaded byPaul Jones
- 20121018 Quiz 5a SolutionsUploaded byPaul Jones
- 20121011 Quiz 4a SolutionsUploaded byPaul Jones
- 20121004_quiz_3bUploaded byPaul Jones
- 20121004 Quiz 3a SolutionsUploaded byPaul Jones

- Leaf Spring Design and Engineering Strength of Materials - Engineers EdgeUploaded bydomingocattoni
- ASTM PTC46.pdfUploaded byBryan Manalo
- Exercise Questions-Aptitude preparation Questions and Answers-19828.pdfUploaded byHarpreet Singh
- Instrumentation Interview Question and AnswersUploaded bysantoshumi
- 5-4 smartUploaded byapi-240724606
- 1.Heart of AlgebraUploaded byTako Pochkhua
- C Pointers Fundamentals Explained With ExamplesUploaded byg_teodorescu
- Skills Check x 52 ONE PER WEEKUploaded byNazir Rashid
- MCTE-DP2013Uploaded byAbdulAziz
- MCEG 2013 Course Syllabus Spring 2012Uploaded byWllm Srto
- resumeUploaded byapi-246629904
- The Research of OFDM Modulation and Demodulation Technology Based on Wavelet Packet06021166Uploaded byManu Prakash
- Dark Matter candidate.pdfUploaded byTeguhind17
- Proposal to Equip New Mathematics Department Computer Lab in Carver 250Uploaded bykumeshk1983
- 2006_Seven Lessons of Geomechanics Software DevelopmentUploaded byExneyder Montoya
- Error DiffusionUploaded bypavani2126
- Stargatebook022814 LibreUploaded byNoDual
- Theory of Metal OxidationUploaded byFrancisco Javier Quintero Cortés
- 00127037Uploaded byjack_clift
- Www New Dawn Magazine Com Articles Metaphysics Intuition Delusion or PercUploaded byFred Lunau
- Prelim ExamUploaded byRomeo Jr Pacheco Opena
- Maximizing customer satisfaction through an online recommendation system: A novel associative classification modelUploaded byAnonymous 43May4KB
- 1 Motion a in One DimensionUploaded byGerata Suraj
- M1191Uploaded byRichard Jia
- A Brief History of Robotics ICODEINCUploaded byIcodeinc
- Re He 2Uploaded byapi-3724082
- Chapter 3 Work BookUploaded byDivya Sriju
- Fundamentals of Engineering - YouTubeUploaded byrod
- HANDOUT_Rapid Control Prototyping with MATLAB.pdfUploaded bymiaauuww
- IMC_PIDUploaded bybmaulana52