Docsity

Module 9 Worksheet - Computability and Languages | CSE 460, Study notes of Computer Science

Toggle sidebar
bg1
Module 9 Worksheet
In Class Questions
1) (S4) Do we need to develop a new program from scratch? Why or why not?
2) (S5) What does the statement “REC is closed under set complement mean?”
3) (S5) Write this closure property as a first-order logic statement.
4) (S5) How do we prove a language L is in REC?
5) (S6) How is the program P’ related to program P?
6) (S11) How is the program P3 related to programs P1 and P2?
7) (S12) REC is closed under set intersection. Write this as a first-order logic statement.
8) (S17) What does the statement “RE is closed under set intersection mean?”
9) (S17) Write this closure property as a first order logic statement.
10) (S17) How do we prove that a language L is in RE?
12) (S21) In the REC proof, what could we assume about P1 and P2 and how is that
different in this proof?
13) (S21) Given the difference highlighted above, what potential problem could we run
into in constructing P3 from P1 and P2?
14) (S22) How does the approach on slide 22 avoid the problem highlighted above?
pf3

Partial preview of the text

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

Module 9 Worksheet In Class Questions

  1. (S4) Do we need to develop a new program from scratch? Why or why not?
  2. (S5) What does the statement “REC is closed under set complement mean?”
  3. (S5) Write this closure property as a first-order logic statement.
  4. (S5) How do we prove a language L is in REC?
  5. (S6) How is the program P’ related to program P?
  6. (S11) How is the program P 3 related to programs P 1 and P 2?
  7. (S12) REC is closed under set intersection. Write this as a first-order logic statement.
  8. (S17) What does the statement “RE is closed under set intersection mean?”
  9. (S17) Write this closure property as a first order logic statement.
  10. (S17) How do we prove that a language L is in RE?
  11. (S21) In the REC proof, what could we assume about P 1 and P 2 and how is that different in this proof?
  12. (S21) Given the difference highlighted above, what potential problem could we run into in constructing P 3 from P 1 and P 2?
  13. (S22) How does the approach on slide 22 avoid the problem highlighted above?
  1. (S22) Is it possible P 3 will infinite loop on an input? Explain your answer.
  2. (S25) What do we need to show P 3 does on inputs NOT in L 1 intersect L 2?
  3. (S28) Write the closure property as a first-order logic statement.
  4. (S30) Why doesn’t this work in the RE setting?
  5. (S30) Does this prove that RE is not closed under set complement? Explain your answer.
  6. (S34) 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.
  7. (S36) Write this pseudo-closure property as a first-order logic statement.
  8. (S36) Can we conclude anything about Lc? Why or why not?
  9. (S42) What if P 2 rejects the input string. Our specification doesn’t explicitly say anything about this case. Take home review questions
  10. What is the difference between RE and REC?
  11. In proving that RE is closed under set intersection, we created a program P 3 that loops in some cases. Why is this ok?