Download as pdf or txt
Download as pdf or txt
You are on page 1of 29

Midterm

Monday, October 5 in class (1:40pm-3:00pm)

Here in Lucy Stone Hall Auditorium

Will announce additional office hours

Midterm: Rules
Bring valid Photo ID, pens.
Closed book
One sheet (front and back) of handwritten
or typed notes (no photocopies) which
instructor and TAs need to be able to read
without any aids.

No electronics (includes watches,

calculators, cell phones, tablets, computers)

Midterm: Rules

Switch off your cell phone!

Take only pen, pencil, eraser, Photo ID, and


something to drink to your seat

If you finish your exam within 60 minutes, you


may hand it in and leave. Otherwise wait until
the end.

Leave all backpacks (with all electronics


turned off), jackets and other bulky items in
front of room

Midterm: Scope
Book: Chap 1.1-1.5 and Chap 2
HW 1-3
Clicker problems up to and including 9/23

Tentative Grading
Weekly assignments: 20%
Two midterms: 30%
Comprehensive Final: 40%
iClicker Participation: 10%

Note: iClicker grade will be based on being


significantly better than random guessing

Active participation in recitations is used to


bump up grade or make up for other issues

Exam grading

All Data from CS206 in Fall 2014

Exam grading on a
curve

Midterm: Strategy
Dont Panic!
Dont expect to solve all problems (even if
4.0 student).

Read through complete exam and triage


problems

Points roughly correspond to difficulty


No trick questions: ask if anything is unclear

Quantifiers
Name

Notation

When true?

When false

Universal
Quantification

x P(x)
for all

P(x) is true for


all x

There is an x for
which P(x) is false
(counterexample)

Existential
Quantification

x P(x)
exists

There is an x for
which P(x) is
true

P(x) is false for


all x

De Morgans for Quantifier


Name

Notation

When is
negation true?

When is negation
false?

xP(x)

x P(x)

P(x) is false for


every x

There is an x for
which P(x) is true

There is an x for
which P(x) is
false

P(x) is true for


all x

x P(x)

x P(x)

Negating Nested Quantifiers


Consider the domain R+. Which of the
propositions is the negation of xy(x+y=1)

D)

xy(x+y 1)

xy(x+y 1)

xy(x+y 1)

xy(x+y 1)

none of the above

Example of an Argument

p a given number is divisible by 4


q a given number is divisible by 2
Premises:
p
pq
Conclusion q is true when all premises
true. The argument is valid.

Example of an Argument Form

p a given number is divisible by 4


q a given number is divisible by 2
Premises:
p
pq
Conclusion q is true when all premises

true. The argument form is valid for all p, q.

Example of an Argument Form

pq
p

Premises:
p
q
pq
Conclusion q is true when all premises

true. The argument form is valid for all p, q.


Modus ponens

General Argument Form

Premises p , p , , p
The argument form is valid for all premises
1

p1, p2, , pn if conclusion q is true when all


premises p1, p2, , pn true; i.e.,
if (p1 p2 pn)q is a tautology.

Note

(p

p2 pn)q is a tautology
does not mean q is always true
1

q a number is divisible by 4
p a number is divisible by 2
Conclusion q is not true because pq
is not true. The argument remains
valid.

pq
p
q

pq
p
q
q
pq
p
pq
qr
pq
pq
p
q
p
pq
pq
p
p
q
pq

pq
p r

q r

(p(pq))q

Modus ponens

(q(pq))p

Modus tollens

((pq)(qr))(pr)

Hypothetical
syllogism

((pq)p)q

Disjunctive
syllogism

p(pq)

Addition

(pq) p

Simplification

((p)(q)) (pq)

Conjunction

((pq)(pr))(qr)

Resolution

p a given number is divisible by 4


q a given number is divisible by 2
Premises:
q
pq
Conclusion p is true by ?

B)

Modus
ponens

Modus
tollens

Hypothetical Disjunctive
syllogism
syllogism

p a given number is divisible by 4


q a given number is divisible by 2
r a given number is divisible by 8
Premises:
p q, r p
Conclusion rq is true by ?

C)

Modus
ponens

Modus
tollens

Hypothetical Disjunctive
syllogism
syllogism

xP(x)
P(c)
P(c) for an arbitrary c
xP(x)
xP(x)
P(c) for some element c
P(c) for some element c
xP(x)

Universal
Instantiation

Universal
Generalization

Existential
Instantiation

Existential
Generalization

x(P(x) Q(x))
P(c) where c is a particular element in domain
Q(c)

x(P(x) Q(x))
Q(c) where c is a particular element in domain
P(c)

Universal Modus
Ponens

Universal Modus
Tollens

Argument w/ Propositional Functions

P(x) the number x is divisible by 4


Q the number x is divisible by 2
Premises:
P(c)
x(P(x) Q(x))
Conclusion Q(c) is true when all premises
true. The argument is valid.

Example
If I take the day off, it either rains or
snows

I took Tuesday off or I took Thursday off


It was sunny on Tuesday
It did not snow on Thursday

If I take the day off, it


either rains or snows

I took Tuesday off or I


took Thursday off

It was sunny on
Tuesday

It did not snow on


Thursday

P(x) took day x off


Q(x) day x sunny
R(x) day x rainy
S(x) snow on day x

Premises
1. x(P(x) (R(x) S(x)))
2. P(Tu) P(Th)
3. Q(Tu)
4. S(Th)

You might also like