Generate any words using the algorithm of theorem 42

Assignment Help Basic Computer Science
Reference no: EM13975403

For this assignment the prescribed book used is: Introduction to Computer Theory, Second Edition
Author: Daniel I.A Cohen.

1. Draw a deterministic PDA to show that the language
{anbmambn| m > 1, n > 1 }

is context-free.

2. Show that the language
{anbncndn for n=1 2 3 ....}= {abcd aabbccdd} is non-context-free. Use a pumping lemma.

3. Find CFG for this language:

All words of the form

axbyaz, where x,y,z=1 2 3....and x+z=y

={abbbba abbbbbbaa aabbbbbba...}

3(a). Find CFG for the language:
L2= (bb)*a

3(b). Find CFG for the language L2*

4. Show that the language
{bbanban+1| n > 0 }

is context-free by building a PDA that accepts precisely this language.

5. Decide whether or not the following grammars generate any words using the algorithm of theorem 42.

SàaSa | bSb. Show every step in your solution.

6. For the following grammar, decide whether the language they generate is fine or infinite using the algorithm in theorem

44(page. 403)

SàXY | bb

XàYY

YàXY | SS. Show every step in your solution.

7. For the following grammar and target strings, decide whether or not the word is generated by the grammar using the CYK algorithm

Sà SS x=abba

Sàa

Sàbb

Reference no: EM13975403

Questions Cloud

Write down the game table of the above simultaneous : Write down the game table of the above simultaneous-move game. What are the (complete) strategy sets of the players?
Determine the probability that their average waiting : At a department store catalog orders counter, the average time that a customer has to wait before being served has been found to be approximately exponentially distributed, with a mean (and standard deviation) of 3.5 minutes. For a simple random s..
What will be the ratio of the ages : The ratio between the present ages of P and Q is 6 : 7. If Q is 4 years old than P, what willbe the ratio of the ages of P and Q after 4 years?
Find the useful power output of an elevator motor : Find the useful power output of an elevator motor that lifts a 2500 kg load a height of 45.0 m in 12.0 s, if it also increases the speed from rest to 4.00 m/s. Note that the total mass of the counterbalanced system is 10000 kg--so that only 2500 k..
Generate any words using the algorithm of theorem 42 : For the following grammar, decide whether the language they generate is fine or infinite using the algorithm in theorem
Find all pure strategy nash equilibria of this game : Suppose the final score is entirely based on the make-up test. If Al and Bob give the same answer on the flat tire question, both pass the exam, yielding a payoff of 10 for each of them.
Calculate the mass of the satellite : When the first artificial satellite was launched into orbit by the former Soviet Union in 1957, U.S. president Dwight D. Eisenhower asked his scientific advisors to calculate the mass of the satellite. Would they have been able to make this calcul..
How much time will both take to finish the work : Ram can do a piece of work in 20 days and Shyam alone can do it in 30 days. How much time will both take to finish the work ?
How are measurements divided between the different detectors : First off, a naive theorist question - How are measurements divided between the different detectors at the LHC? I would imagine that for a short run time, say, the CMS detector is active and all the others are turned off (the beam just passes thro..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd