DOC PREVIEW
Berkeley COMPSCI 70 - Discussion Notes

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CS 70 SPRING 2008 — DISCUSSION #1LUQMAN HODGKINSON, AARON KLEINMAN, MIN XU1. Administrivia(1) Course Information• The first homework is due Thursday January 31st at 5:00PM. You are encouraged to workon the homework in groups of 3-4, but write up your submission on your own. Cite any externalsources you use.(2) Discussion Information• If you have a clash, it is ok to attend a section different to your enrolled/wait-listed one if youcan get the permission of the new section’s GSI. Just be sure to show up so that we can ‘assign’you somewhere based on the rolls taken in sections in the first few weeks.• Section notes like these will be posted on the course website.• Feel free to contact the GSI’s via e-mail, or the class staff and students through the newsgroup,ucb.class.cs70, if you have a question.2. Warm-up ExerciseExercise 1. Write down the truth table for ¬A ⇒ B. What else is this operation on A and B known as?Exercise 2. Use a truth table to show that the negation of P ⇒ Q is P ∧ ¬Q, in another words, ¬(P ⇒ Q)is logically equivalent to P ∧ ¬Q. Keeping in mind that DeMorgan’s rule says that ¬(P ∧ Q) ≡ ¬P ∨ ¬Q,what is the negation of P ⇔ Q?3. Quantifier PracticeExercise 3. Consider the false statement “For each x in R. x2≥ x” (consider 0 < x < 1). What is thenegation of this statement? Is it “For each x in R. x2< x”? Why not? Let P (x) be the proposition“x2≥ x” with x taken from the universe of real numbers R. Then our original statement is succinctlywritten as ∀x.P (x). How do we negate this with DeMorgan’s Law?We can chain together quantifiers in any manner we please: ∀x.∃y.∀z.P (x, y, z) and negate it using thesame rules discussed above. By applying the rules in sequence, we get that¬(∀x.∃y.∀z.P (x, y, z))∃x.¬(∃y.∀z.P (x, y, z))∃x.∀y.¬(∀z.P (x, y, z))∃x.∀y.∃z, ¬P (x, y, z)The ¬ “bubbles down”, flipping quantifiers as it goes.The following problem comes from Question 14 inthe Mathematics Subject GRE Sample Test:Exercise 4. Let R be the set of real numbers and let f and g be functions from R to R. The negation ofthe statement“For each s in R, there exists an r in R such that if f(r) > 0, then g(s) > 0.”is which of the following?(A) For each s in R, there exists an r in R such that f (r) ≤ 0 and g(s) > 0.(B) There exists an s in R such that for each r in R, f (r) ≤ 0 and g(s) ≤ 0.Date: February 1, 2008.The authors gratefully acknowledge the TA’s of CS70 Past for the use of their previous notes: Assane Gueye, VahabPournaghshband, Alex Fabrikant, Chris Crutchfield, Amir Kamil, David Garmire, Lorenzo Orecchia, and Ben Rubinstein.Their notes form the basis for this handout.1(C) There exists an s in R such that for each r in R, f (r) ≤ 0 and g(s) > 0.(D) There exists an s in R such that for each r in R, f (r) > 0 and g(s) ≤ 0.(E) For each s in R, there exists an r in R such that f (r) ≤ 0 and g(s) ≤ 0.Use the tools covered above. (hint: what happens when you negate an implication? Try rewriting thestatements in propositional logic, e.g. replacing f (r) > 0 with P (r) and g(s) > 0 with Q(s)). 4. We Hold These Truth To Be Self-Evident That ∀x, y ∈ MEN.x = yExercise 5. Suppose we’re considering the domain of just 2 numbers S = {0, 1}. Try to re-state the followingpropositions without using any quantifiers. For example, ∀x.P (x) can be re-formulated as P (0) ∧ P (1).(1) ∃x.P (x)(2) ¬∃x.P (x)(3) ∀x.∃y.P (x, y)(4) ∃x.P (x) ∨ (∀y.Q(x, y))(5) ¬(∀x.∃y.P (x) ⇒ Q(y))Exercise 6. Louis Reasoner, upon finishing CS61A, decided to take CS70. After the first lecture, he imme-diately made the conjecture that ∀x.∃y.P (x, y) is logically equivalent to ∃y.∀x.P (x, y). Use a counterexamplefrom either basic mathematics or the everyday world to prove him wrong. What about ∀x.∀y.P (x, y) vs.∀y.∀x.P (x, y)? Or what about ∃x.∃y.P (x, y) vs. ∃y∃x.P (x,


View Full Document

Berkeley COMPSCI 70 - Discussion Notes

Documents in this Course
Notes 1

Notes 1

12 pages

Note 2

Note 2

6 pages

Notes

Notes

6 pages

Notes

Notes

7 pages

Note 10

Note 10

8 pages

n20

n20

10 pages

n19

n19

10 pages

n18

n18

10 pages

n17

n17

6 pages

n16

n16

9 pages

n15

n15

10 pages

n14

n14

9 pages

n13

n13

6 pages

n12

n12

7 pages

n11

n11

6 pages

n10

n10

8 pages

n9

n9

5 pages

n8

n8

7 pages

n7

n7

8 pages

n6

n6

5 pages

n5

n5

8 pages

n4

n4

7 pages

n3

n3

10 pages

n2

n2

7 pages

n1

n1

5 pages

Load more
Download Discussion Notes
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Discussion Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Discussion Notes 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?