Chapter 0: Q20E (page 1)
For each of the following languages, give two strings that are members and two strings that are not members—a total of four strings for each part. Assume the alpha-alphabet in all parts.
Short Answer
The solution is,
Chapter 0: Q20E (page 1)
For each of the following languages, give two strings that are members and two strings that are not members—a total of four strings for each part. Assume the alpha-alphabet in all parts.
The solution is,
All the tools & learning materials you need for study success - in one app.
Get started for freeWhich of the following pairs of numbers are relatively prime? Show the calculations that led to your conclusions
Let G1 be the following grammar that we introduced in Example
2.45. Use the DK-test to show that G1is not a DFG.
Let
contains all size 3 columns of 0s and 1 s. A string of symbols ingives three rows of 0s and 1s. Consider each row to be a binary number and let B=the bottom row of W is the sum of the top two rows}.
For example,
Show that Bis regular.
(Hint: Working with is easier. You may assume the result claimed in Problem 1.31.)
Let F be the language of all strings over that do not contain a pair of 1s that are separated by an odd number of symbols. Give the state diagram of a DFA with five states that recognizes . (You may find it helpful first to find a 4-state NFA for the complement of ).
Let are positive binary integers such that
Show that . (Note that the most obvious algorithm doesn’t run in polynomial time. Hint: Try it first where b is a power of .)
What do you think about this solution?
We value your feedback to improve our textbook solutions.