BABA BANDA SINGH BAHADUR ENGINEERING COLLEGE FATEHGARH SAHIB (Department of CSE & IT) ONLINE QUESTION BANK

Similar documents
Language properties and Grammar of Parallel and Series Parallel Languages

Grammars & Parsing, Part 1:

COMPUTATIONAL COMPLEXITY OF LEFT-ASSOCIATIVE GRAMMAR

RANKING AND UNRANKING LEFT SZILARD LANGUAGES. Erkki Mäkinen DEPARTMENT OF COMPUTER SCIENCE UNIVERSITY OF TAMPERE REPORT A ER E P S I M S

A R "! I,,, !~ii ii! A ow ' r.-ii ' i ' JA' V5, 9. MiN, ;

A General Class of Noncontext Free Grammars Generating Context Free Languages

Informatics 2A: Language Complexity and the. Inf2A: Chomsky Hierarchy

Erkki Mäkinen State change languages as homomorphic images of Szilard languages

Syntax Parsing 1. Grammars and parsing 2. Top-down and bottom-up parsing 3. Chart parsers 4. Bottom-up chart parsing 5. The Earley Algorithm

A Version Space Approach to Learning Context-free Grammars

CS 598 Natural Language Processing

Basic Parsing with Context-Free Grammars. Some slides adapted from Julia Hirschberg and Dan Jurafsky 1

Self Study Report Computer Science

AGS THE GREAT REVIEW GAME FOR PRE-ALGEBRA (CD) CORRELATED TO CALIFORNIA CONTENT STANDARDS

Natural Language Processing. George Konidaris

Statewide Framework Document for:

Enumeration of Context-Free Languages and Related Structures

Grade 6: Correlated to AGS Basic Math Skills

Proof Theory for Syntacticians

PRODUCT PLATFORM DESIGN: A GRAPH GRAMMAR APPROACH

Developing a TT-MCTAG for German with an RCG-based Parser

Mathematics subject curriculum

Parsing of part-of-speech tagged Assamese Texts

systems have been developed that are well-suited to phenomena in but is properly contained in the indexed languages. We give a

BENCHMARK MA.8.A.6.1. Reporting Category

A Grammar for Battle Management Language

Lecture 10: Reinforcement Learning

11/29/2010. Statistical Parsing. Statistical Parsing. Simple PCFG for ATIS English. Syntactic Disambiguation

Math 098 Intermediate Algebra Spring 2018

Algebra 1 Summer Packet

Objectives. Chapter 2: The Representation of Knowledge. Expert Systems: Principles and Programming, Fourth Edition

Probability and Game Theory Course Syllabus

TabletClass Math Geometry Course Guidebook

On the Polynomial Degree of Minterm-Cyclic Functions

Discriminative Learning of Beam-Search Heuristics for Planning

Page 1 of 11. Curriculum Map: Grade 4 Math Course: Math 4 Sub-topic: General. Grade(s): None specified

"f TOPIC =T COMP COMP... OBJ

Standard 1: Number and Computation

School of Innovative Technologies and Engineering

Chinese Language Parsing with Maximum-Entropy-Inspired Parser

TOPICS LEARNING OUTCOMES ACTIVITES ASSESSMENT Numbers and the number system

Grade 5 + DIGITAL. EL Strategies. DOK 1-4 RTI Tiers 1-3. Flexible Supplemental K-8 ELA & Math Online & Print

Spring 2016 Stony Brook University Instructor: Dr. Paul Fodor

Numeracy Medium term plan: Summer Term Level 2C/2B Year 2 Level 2A/3C

University of Groningen. Systemen, planning, netwerken Bosman, Aart

Morphotactics as Tier-Based Strictly Local Dependencies

CS 1103 Computer Science I Honors. Fall Instructor Muller. Syllabus

Algebra 1, Quarter 3, Unit 3.1. Line of Best Fit. Overview

WSU Five-Year Program Review Self-Study Cover Page

1.11 I Know What Do You Know?

Refining the Design of a Contracting Finite-State Dependency Parser

CS 101 Computer Science I Fall Instructor Muller. Syllabus

Cal s Dinner Card Deals

Context Free Grammars. Many slides from Michael Collins

GACE Computer Science Assessment Test at a Glance

The Strong Minimalist Thesis and Bounded Optimality

The Interface between Phrasal and Functional Constraints

Are You Ready? Simplify Fractions

Guide to the Uniform mark scale (UMS) Uniform marks in A-level and GCSE exams

arxiv: v1 [math.at] 10 Jan 2016

OPTIMIZATINON OF TRAINING SETS FOR HEBBIAN-LEARNING- BASED CLASSIFIERS

Classroom Connections Examining the Intersection of the Standards for Mathematical Content and the Standards for Mathematical Practice

Mathematics. Mathematics

B.S/M.A in Mathematics

The New York City Department of Education. Grade 5 Mathematics Benchmark Assessment. Teacher Guide Spring 2013

Evolution of Collective Commitment during Teamwork

Dublin City Schools Mathematics Graded Course of Study GRADE 4

Course Syllabus for Math

BANGLA TO ENGLISH TEXT CONVERSION USING OPENNLP TOOLS

Math-U-See Correlation with the Common Core State Standards for Mathematical Content for Third Grade

Mathematics Assessment Plan

Date : Controller of Examinations Principal Wednesday Saturday Wednesday

Characteristics of Functions

GRAMMAR IN CONTEXT 2 PDF

Physics 270: Experimental Physics

Efficient Normal-Form Parsing for Combinatory Categorial Grammar

Empiricism as Unifying Theme in the Standards for Mathematical Practice. Glenn Stevens Department of Mathematics Boston University

IT Students Workshop within Strategic Partnership of Leibniz University and Peter the Great St. Petersburg Polytechnic University

Pre-Algebra A. Syllabus. Course Overview. Course Goals. General Skills. Credit Value

Hyperedge Replacement and Nonprojective Dependency Structures

HOLMER GREEN SENIOR SCHOOL CURRICULUM INFORMATION

ENME 605 Advanced Control Systems, Fall 2015 Department of Mechanical Engineering

Parsing natural language

Florida Mathematics Standards for Geometry Honors (CPalms # )

Edexcel GCSE. Statistics 1389 Paper 1H. June Mark Scheme. Statistics Edexcel GCSE

The Indices Investigations Teacher s Notes

Language Evolution, Metasyntactically. First International Workshop on Bidirectional Transformations (BX 2012)

ENGBG1 ENGBL1 Campus Linguistics. Meeting 2. Chapter 7 (Morphology) and chapter 9 (Syntax) Pia Sundqvist

South Carolina English Language Arts

Radius STEM Readiness TM

On-the-Fly Customization of Automated Essay Scoring

ReinForest: Multi-Domain Dialogue Management Using Hierarchical Policies and Knowledge Ontology

LLD MATH. Student Eligibility: Grades 6-8. Credit Value: Date Approved: 8/24/15

Math 22. Fall 2016 TROUT

AP Calculus AB. Nevada Academic Standards that are assessable at the local level only.

have to be modeled) or isolated words. Output of the system is a grapheme-tophoneme conversion system which takes as its input the spelling of words,

Computer Science (CS)

Factoring - Grouping

Visual CP Representation of Knowledge

MTH 141 Calculus 1 Syllabus Spring 2017

Transcription:

BABA BANDA SINGH BAHADUR ENGINEERING COLLEGE FATEHGARH SAHIB (Department of CSE & IT) ONLINE QUESTION BANK Branch: CSE Semester: 8 th Subject: FLAT Sub. Code: CS-404 SECTION A 1. State the difference between Context free and Context sensitive grammars. 2. Define cellular automata with example. 3. What do mean by reduced grammars? Give examples. 4. What is push down automata? List the parts of push down automata. 5. What do you mean by equivalent form of acceptance? 6. The deterministic pushdown automata is not equivalent to nondeterministic Pushdown automata. Justify the statement. 7. State the pumping lemma for context free language. 8. Explain the term recursively enumerable language. 9. What is the degree or ambiguity? Explain with examples. 10. What do you mean by unrestricted grammar? Give examples. 11.What do you mean by Pumping lemma for CFLs? 12. What do you mean by Context sensitive language? Discuss. 13.What is the role of derivation graph in Finite Automata? 14. How you will show the equivalence of automata with regular grammar? 15.What do you mean by a rewriting a system? 16. Describe unambiguous grammar and degree or ambiguity? 17.What do you mean by cellular automata? 18. List some formal properties of LR(k) grammar? 19.Show that finite pushdown automata and non-finite pushdown automata are different.

20.What do you mean by derivation graph? 21.State the difference between Context free and Context sensitive language? 22.What do you mean by Homomorphism of regular sets? 23. Eliminate E production from the following grammars:- S -> ABAC A -> aa / E B -> b B / E C -> C 24.What do you mean by KNF? 25.What do you mean by left linear & right linear grammar? Explain properly. 26. Simplify following regular expression: (1+01*)+(1+01*)(10*+1)(11*+0) 27.What is E closure of a state'? 28.Write regular expression for the language which consists of string of 0 s and 1 s with at most one pair of consecutive 1 s. 29. What is idempotence law of union? 30. What is homomorphism and inverse homomorphism? 31.What is meant by yield of a parse tree? 32. Give formal notation of pushdown automata? 33. What are useless symbols? 34.What is 2 push down automata? 35. State the Dyck's language. 36.Consider a set L= {0,1}.What is L+ and L *? 37.What do you mean by reduced grammars? 38.Every non-empty CFL is generated by a CFG with no use less symbols. justify the statement 39. What do you mean by reduced grammars? Explain. 40.Give the Leftmost order of derivation of a string id+id*id. Also draw the derivation tree. 41. What do you understand by recursively enumerable language?

42. Define regular expression. 43. What do you mean by Canonical derivation? SECTION B 52. Differentiate between context free and context sensitive grammars. 53.The conversion from a grammar to Chomsky normal form can square the number of production in a grammar. Justify statement. 54. Show that CSL is closed under Union, iteration & catenation. 55. Construct a Turing m/c that accepts following language L= {0 n 1 n for n>=1} 55.What do you mean by pumping lemma for regular languages? 56. What do you mean by canonical derivation? 57. Construct the NFA for the following regular expressions: a) aba* I bcb* b) (a l b)* abb (a l b)*. 58.What is a context free language? Explain closure properties of a language. 59. Construct PDA equivalent to the following grammar S as /asbs/e 60.Explain algebraic properties and complexity variants with the help of suitable examples. 61.Language is said to be regular if and only if it has left linear and right linear grammar. Prove 62.Explain that various Algebraic properties and complexity variants of a cellular automata with same example. 63.Compare and construct context free grammars with context sensitive language. Give some examples of each. 64.Show that the context sensitive language (CSLs) arc closed under the operation union, concatenation & intersection. 65.Give a deterministic finite automata accepting the set of all strings of 0 s

and 1 s in which both the number of o's and 1's are even. 66.Let L be the set of all strings given by 0 s where I is an integer greater than 1, i.e L = { 0 I 1 I for I is an integer. I >= 1 J Prove that I, is not a regular set. 67. Let G be a grammar given by (V,T,P,S) with V = {S, A, B, C}, T={a,b,c}. P={ S asa, S bsb, S C}, which generates the language {wcw T : wє {a,b } and w T is reverse of string w. Construct a PDA equivalent to the following grammar. 68. What are the Ambiguous grammars? Explain with a suitable example. 69. What is rewriting systems? Give various fundamental operations? 70.Write a note on LL(k) grammars? 71. Find the reduced grammar that is equivalent to CFG given below: S ac/sb A bsca B asl3 I bbc C abc/ad 73.Construct the finite automata for accepting all possible strings of zeros and one which does not contain 011 as substring. 74. What arc ambiguous grammars? Is the following grammar ambiguous: E E+E E*E a b 75. List and explain the properties of context free grammar/languages. 76. What are translation lemmas in complexity theory? Explain. 77.Prove that { 0 n /n is a power of 2} is not a regular language. 78.What is a parse tree? What is meant by yield of a parse tree? Draw a parse tree for the following grammar which derives the string 00011: S A I B A 0A C B 0B 1B C 79. State and prove ARDEN s Theorem.

80.What arc ambiguous grammars? Show that the following grammar is ambiguous. S as asbs E SECTION C 81.For the grammar given in Q no 80, show that the string aab has two: ( i )Parse trees. (ii) Leftmost derivations (iii) Right most derivations 82. Write a brief note about universality and complexity in cellular automata. 83. How equivalent are finite automata and nonfinite automata? 84. What arc various algebraic properties and complexity variants of cellular automata? 85.What is turning machine? Develop a turning machine for accepting words of type 1 n 2 n 3 n 86. State and prove Greibach normal Form(GNF). 87. How can a grammar be converted to Chomsky Normal Form(CNF). 88.Prove that if L is a Context Free Language, then there exists a PDA which accepts L. 89. Construct regular grammars to generate the following: a) The set of all strings over { a, b } ending in a. b) The set of all strings over { a, b } beginning with a. 90.Construct transition systems equivalent to the regular expressions given below: I. (ab + a) * ( aa + b). II. III. ( a*b + b*a )*a. a* + (ab + a)*. 91.Construct an DFA with reduced states equivalent to following regular expression: 10 + (0 + 11)0*1

92.Reduce the following grammars to GNF : a) S SS, S 0S1 01 b) S AB, A BSB, A BB, B aab, B a, A b c) S A0,A 0B, B A0, B 1 93. Reduce the following grammars to CNF I. S 1A 0B, A 1AA 0S I 0, B 0BB 1S 1 II. G= ( {S}, { a,b,c}, {S a b css}, S) III. S absb a aab, A bs aaab 94.Consider the language consisting of all arithmetic expressions involving +, *, ( and ) over the variables x1 and x2. This language is generated by a grammar G=({T,F,E}, V, P, E), where V={ x, 1, 2, +, *, (, )} and P consists of E E + T F (E) E T F x1 T T * F F x2 T F Construct a top-down parser for it. 95.Prove that if L is a context free language, then we can construct a pda A accepting l by empty store i.e. L = N(A) 96.Prove that if A = (Q, Σ, Γ, δ, q 0, Z 0, F) is a pda, then there exists a CFG G such that L(G) = N(A). 97.Construct a pda A accepting the set of all integers over {a, b} with equal number of a s and b s. 98. Let G be S AB, B C b, A a, C D, D E and E a. Eliminate unit productions and get an equivalent grammar. 99. Construct a Turing Machine that can accept the set of all even palindromes over {0,1}. 100. Some languages which are not accepted either by a finite Automation or by a Push Down Automation arc accepted by a Turing Machine. Explain the statements with suitable examples. 101. Convert the following regular expression to NFA

a) (0+ 1)* 1(0+1) b) 00 (0+ 1)* c) 01* d)( 0 + 1)0 1 102. Consider a Grammer G=(V,T,P,S).Prove that for any CFG G there is a CFG G in Chomsky Normal Form such that L(G')=L(G)-(TU{E)). where L is the language accepted by the grammar. 103. What is Turing Machine?Give a formal notation for a turing machine explaining each of the tuples. Design a turing Machines which generates a set of string with equal numbers of 0 s and 1's. 104. Explain Chomsky Normal Forms and Griebach Normal Forms in Detail. 105. Construct a PDA A equivalent to the fol.owing context free grammar: S 0BB, BB 0S 1S 0 Test whether 011110 is in N(A). 106. Draw turing machine over [{1,b}: which can compute concatenation function over terminal symbol={ 1}.If a pair of words (w,w*).is the input the output should be ww*. 107. What is a LR grammar. Give its properties. Show that the grammar S aab, A aab a is LR( 1 ).Is it LR(0). 108. Prove the following identity (a*ab+ ba)*a*=(a +- ab +ba) 109. Construct a transition system corresponding to the regular expression i) (ab + c*)* b ii) a+ bb + bab*a 110. Consider the following productions: S ab ba ; A as baa a B bs abb b For the string aaabbabbba find i) The Leftmost derivation. i i )The Rightmost Derivation

iii) parse Tree. 111. What is a rewriting system? Explain non-terminal rewriting system? 112. List and explain the various formal languages aspects in detail. 106. Find a reduced grammar equivalent to the grammar G whose productions are S AB CA, B BC AB, A a, C ab b