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

  Describing how prolog executes command

Describe how Prolog executes command (query) and goal matching process.

  How are the topics of the two articles related

Research at least two articles on the topic of managerial issues of a networked organization.

  Comma-delimited text file

This is based on a comma-delimited text file that has already been created containing a 3 digit ID # and a first and last name. The last part of the excercise is as follows.

  How itdepartment helps organization achieve strategic goels

Discuss how the IT department helps the organization achieve their strategic goals

  The cost of having the tree removedwould

Suppose that your neighbor owns an old tree, with branches that extend over yourlawn. He enjoys having the tree, getting utility of $100, and incurring $65 ofcleanup costs on his own lawn. However, the tree drops leaves and crabapples onyour lawn, wh..

  Intermediate routers between the source and the destination

Compute the time required for circuit switching and packet switching with the following conditions: ? The destination is 3 hops away from the source (2 intermediate routers between the source and the destination, with 3 links).The distance betw een ..

  Explain security awareness and training document

Amy walked into her office cubicle and sat down. The entire episode with the blond man had taken well over two hours of her day. Based on this case study, what security awareness and training documents and posters had an impact in this event?

  Why globalization is good or not good for a business

Write an argumentative paper of no more than 750 words that demonstrates why globalization is good or not good for a business. The paper should define the term good, and should identify the premises and conclusions.

  Running total of the number of bugs collected

A bug collector collects bugs every day for seven days. Design a modularized program that keeps a running total of the number of bugs collected during the seven days. The loop should ask for the number of bugs collected for each day, and when the loo..

  Problem on pushdown automaton

Consider the following Pushdown Automaton (PDA) P1:

  Write a program that uses a recursive method for palindome

palindome is a string that reads the same both forward and backward. For example,the string "madam" is a palindrome. write a program that uses a recursive method to check whether a string is a palindome.

  File sharing program

Explain what your process was and how the experiment went. Were you successful? What did you learn from the experience ?Experiment choice #1:  File Sharing Program Download a current version a file sharing program such as BitTorrent and use it to dow..

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