• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 348 pages
Exam (elaborations)

Automata, Computability and Complexity (1st Edition, 2008) – Solutions Manual – Rich

Document preview thumbnail
Preview 4 out of 348 pages

INSTANT PDF DOWNLOAD — Complete Solutions Manual for Automata, Computability, and Complexity: Theory and Applications (1st Edition, 2008) by Elaine Rich. Includes all 30 chapters plus Appendix A & B with detailed step-by-step solutions, proofs, and explanations. Ideal for computer science majors studying automata theory, algorithms, and formal languages. Automata Computability and Complexity solutions manual, Elaine Rich automata solutions, automata theory textbook answers, computability and complexity solved problems, formal languages and automata guide, automata theory study solutions PDF, complexity theory problem solutions, Turing machine solved exercises, Rich automata textbook manual, automata and formal languages answers, computer science automata solutions, automata computability complexity 1st edition, automata Rich PDF solutions manual, computational theory solved problems, automata design and computation guide, automata textbook question answers, formal language theory solutions manual, automata course companion PDF, computer science theory textbook solutions, automata problem solving manual

Content preview

All 30 Chapters & Appendix A & B Covered




SOLUTIONS MANUAL

,Automata, Computability and
Complexity with Applications

Exercises in the Book

Solutions




Elaine Rich

, Part I: Introduction
1 Why Study Automata Theory?
2 Languages and Strings
1) Consider the language L = {1n2n : n > 0}. Is the string 122 in L?

No. Every string in L must have the same number of 1’s as 2’s.

2) Let L1 = {anbn : n > 0}. Let L2 = {cn : n > 0}. For each of the following strings, state whether or not it is an
element of L1L2:
a) ε. No.
b) aabbcc. Yes.
c) abbcc. No.
d) aabbcccc. Yes.

3) Let L1 = {peach, apple, cherry} and L2 = {pie, cobbler, ε}. List the elements of L1L2 in lexicographic
order.

apple, peach, cherry, applepie, peachpie, cherrypie, applecobbler, peachcobbler,
cherrycobbler (We list the items shortest first. Within a given length, we list the items
alphabetically.)

4) Let L = {w ∈ {a, b}* : |w| ≡3 0}. List the first six elements in a lexicographic enumeration of L.

ε, aaa, aab, aba, abb, baa

5) Consider the language L of all strings drawn from the alphabet {a, b} with at least two different substrings of
length 2.
a) Describe L by writing a sentence of the form L = {w ∈ Σ* : P(w)}, where Σ is a set of symbols and P is a
first-order logic formula. You may use the function |s| to return the length of s. You may use all the
standard relational symbols (e.g., =, ≠, <, etc.), plus the predicate Substr(s, t), which is True iff s is a
substring of t.

L = {w ∈ {a, b}* : ∃x, y (x ≠ y ∧ |x| = 2 ∧ |y| = 2 ∧ Substr(x, w) ∧ Substr(y, w))}.

b) List the first six elements of a lexicographic enumeration of L.

aab, aba, abb, baa, bab, bba

6) For each of the following languages L, give a simple English description. Show two strings that are in L and
two that are not (unless there are fewer than two strings in L or two not in L, in which case show as many as
possible).
a) L = {w ∈ {a, b}* : exactly one prefix of w ends in a}.

L is the set of strings composed of zero or more b’s and a single a. a, bba and bbab are in L. bbb and
aaa are not.

b) L = {w ∈ {a, b}* : all prefixes of w end in a}.

L = ∅, since ε is a prefix of every string and it doesn’t end in a. So all strings are not in L, including a and
aa.


Chapter 2 1

, c) L = {w ∈ {a, b}* : ∃x ∈ {a, b}+ (w = axa)}.

L is the set of strings over the alphabet {a, b} whose length is at least 3 and that start and end with a. aba,
and aaa are in L. ε, a, ab and aa are not.

7) Are the following sets closed under the following operations? If not, what are their respective closures?
a) The language {a, b} under concatenation.

Not closed. {w ∈ {a, b}* : |w| > 0}

b) The odd length strings over the alphabet {a, b} under Kleene star.

Not closed because, if two odd length strings are concatenated, the result is of even length. The closure is
the set of all nonempty strings drawn from the alphabet {a, b}.

c) L = {w ∈ {a, b}*} under reverse.

Closed. L includes all strings of a’s and b’s, so, since reverse must also generate strings of a’s and b’s,
any resulting string must have been in the original set.

d) L = {w ∈ {a, b}* : w starts with a} under reverse.

Not closed. L includes strings that end in b. When such strings are reversed, they start with b, so they are
not in L. But, when any string in L is reversed, it ends in a. So the closure is {w ∈ {a, b}* : w starts with
a} ∪ {w ∈ {a, b}* : w ends with a}.

e) L = {w ∈ {a, b}* : w ends in a} under concatenation.

Closed.

8) For each of the following statements, state whether it is True or False. Prove your answer.
a) ∀L1, L2 (L1 = L2 iff L1* = L2*).

False. Counterexample: L1 = {a}. L2 = {a}*. But L1* = L2* = {a}* ≠ {a}.

b) (∅ ∪ ∅*) ∩ (¬∅ – (∅∅*)) = ∅ (where ¬∅ is the complement of ∅).

False. The left hand side equals {ε}, which is not equal to ∅.

c) Every infinite language is the complement of a finite language.

False. Counterexample: Given some nonempty alphabet Σ, the set of all even length strings is an infinite
language. Its complement is the set of all odd length strings, which is also infinite.

d) ∀L ((LR)R = L).

True.

e) ∀L1, L2 ((L1 L2)* = L1* L2*).

False. Counterexample: L1 = {a}. L2 = {b}. (L1 L2)* = (ab)*. L1* L2* = a*b*.




Chapter 2 2

Document information

Uploaded on
November 5, 2025
Number of pages
348
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$20.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TestBanksStuvia
3.9
(331)
Sold
3252
Followers
1210
Items
2232
Last sold
2 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions