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
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..
|