Docsity

17 Problems on Module in Computability and Languages - Assignment | CSE 460, Study notes of Computer Science

Toggle sidebar
bg1
Module 9 Worksheet
In Class Questions
1) (S5) What does the statement “REC is closed under set complement mean?”
2) (S5) Write this closure property as a first-order logic statement.
3) (S5) How do we prove a language L is in REC?
4) (S17) What does the statement “RE is closed under set intersection mean?”
5) (S17) Write this closure property as a first order logic statement.
6) (S17) How do we prove that a language L is in RE?
7) (S21) In the REC proof, what could we assume about P1 and P2 and how is that
different in this proof?
8) (S21) Given the difference highlighted above, what potential problem could we run
into in constructing P3 from P1 and P2?
9) (S22) How does the approach on slide 22 avoid the problem highlighted above?
10) (S22) Is it possible P3 will infinite loop on an input? Explain your answer.
11) (S33) Given that RE is closed under set intersection, which of the following two
statements helps imply that L is in RE?
a) L1 intersect L2 = L where L1 is r.e. and L2 is r.e.
b) L1 intersect L = L2 where L1 is r.e. and L2 is r.e.
12) (S42) What if P2 rejects the input string. Our specification doesn’t explicitly say
anything about this case.
pf2

Partial preview of the text

Download 17 Problems on Module in Computability and Languages - Assignment | CSE 460 and more Study notes Computer Science in PDF only on Docsity!

Module 9 Worksheet In Class Questions

  1. (S5) What does the statement “REC is closed under set complement mean?”
  2. (S5) Write this closure property as a first-order logic statement.
  3. (S5) How do we prove a language L is in REC?
  4. (S17) What does the statement “RE is closed under set intersection mean?”
  5. (S17) Write this closure property as a first order logic statement.
  6. (S17) How do we prove that a language L is in RE?
  7. (S21) In the REC proof, what could we assume about P 1 and P 2 and how is that different in this proof?
  8. (S21) Given the difference highlighted above, what potential problem could we run into in constructing P 3 from P 1 and P 2?
  9. (S22) How does the approach on slide 22 avoid the problem highlighted above?
  10. (S22) Is it possible P 3 will infinite loop on an input? Explain your answer.
  11. (S33) Given that RE is closed under set intersection, which of the following two statements helps imply that L is in RE? a) L 1 intersect L 2 = L where L 1 is r.e. and L 2 is r.e. b) L 1 intersect L = L 2 where L 1 is r.e. and L 2 is r.e.
  12. (S42) What if P 2 rejects the input string. Our specification doesn’t explicitly say anything about this case.

Take home review questions

  1. What is the difference between RE and REC?
  2. In proving that RE is closed under set intersection, we created a program P 3 that loops in some cases. Why is this ok?
  3. What do I mean when I say execute P 1 and P 2 in parallel on an input?

Place the following objects into the above diagrams. Represent the objects as a circle if the object is a set, a dot if the object is an element, or leave the object out if it does not belong in that diagram. Some objects may be in only one diagram, others in both. Try to capture the correct relationship between distinct objects in each diagram. REC Set of even length strings over {a}. {a}* aaa

  1. Which of the following proves that L is solvable (not solvable)? L union L 1 = L 2 where L 1 is half-solvable and L 2 is solvable L union L 1 = L 2 where L 1 is solvable and L 2 is solvable L union L 1 = L 2 where L 1 is solvable and L 2 is half-solvable but not solvable L 1 union L 2 = L where L 1 is solvable and L 2 is half-solvable but not solvable L 1 union L 2 = L where L 1 is half-solvable and L 2 is half-solvable L 1 union L 2 = L where L 1 is solvable and L 2 is solvable 2 {a}*^ {a}