Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

CS 173: Midterm Exam 1, Exams of Discrete Mathematics

This is a midterm exam for cs 173, a course in discrete mathematics and formal systems, covering topics such as logic, set theory, and mathematical induction. The exam consists of multiple choice, short answer, and proof-based problems.

Typology: Exams

2012/2013

Uploaded on 04/27/2013

atmaja
atmaja 🇮🇳

4.2

(45)

182 documents

1 / 10

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS 173: Midterm Exam 1
Fall 2005
Name:
NetID:
Lecture Section:
Section Leader:
General Directions
1. Make sure your name is on every page.
2. Remember to write clearly and legibly. Unreadable answers will receive no credit.
3. This is a closed book exam. No notes of any kind are allowed. No calculators.
4. Remember to time yourself.
Question Points Out of
1 5
2 5
3 5
4 5
5 5
6 5
7 5
8 5
9 10
10 10
11 10
12 10
13 20
Total 100
Page 1 of 10
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download CS 173: Midterm Exam 1 and more Exams Discrete Mathematics in PDF only on Docsity!

CS 173: Midterm Exam 1

Fall 2005

Name:

NetID:

Lecture Section:

Section Leader:

General Directions

  1. Make sure your name is on every page.
  2. Remember to write clearly and legibly. Unreadable answers will receive no credit.
  3. This is a closed book exam. No notes of any kind are allowed. No calculators.
  4. Remember to time yourself.

Question Points Out of

Total 100

Multiple Choice

Problem 1 (5pts)

Which of the following is logically equivalent to p → q?

a) q ∨ ¬p

b) the contrapositive of p → q

c) the inverse of the converse of p → q

d) all of the above

Problem 2 (5pts)

Which of the following is a negation of ∀x∀y[((x > 0) ∧ (y > 0)) → (x + y > 0)]?

a) ∃x∃y[(x > 0) ∧ (y > 0) ∧ (x + y ≤ 0)]

b) ∃x∃y[((x ≤ 0) ∨ (y ≤ 0)) ∧ (x + y > 0)]

c) ∀x∀y¬[((x > 0) ∧ (y > 0)) → (x + y > 0)]

d) ∃x∃y[(x ≤ 0) ∨ (y ≤ 0) ∨ (x + y > 0)]

Problem 7 (5pts)

Let f (x) = 3x + 2 and g(x) = x^2 be functions defined on the integers (f : Z → Z, g : Z → Z). Which of the following is true?

a) g ◦ f = O(x^2 )

b) g ◦ f = O(x^3 ), and g ◦ f is not O(x^2 )

c) g ◦ f (x) = f ◦ g(x)

d) g ◦ f has an inverse function.

Problem 8 (5pts)

Which of the following is false?

a) {x} ⊆ {x}

b) {x} ∈ {x, {x}}

c) {x} ⊆ P({x}), where P({x}) is the power set of {x}

d) {x} ⊆ {x, {x}}

Short Answer Problems

Problem 9 (10pts)

Use an indirect proof for the following:

Given: p → (m → w) w → d m ¬d Prove: ¬p

Problem 11 (10pts)

Tell whether each of the following is True or False. The universe is all integers.

a) ∀z∀y∃x(x − y = z)

b) ∀y∃x∃z(x − y = z)

c) ∀x∀y∀z(x − y = z)

d) ∀x∀y∃z(x − y = z)

e) ∀x∃y∃z(x − y = z)

f) ∃x∃y∀z(x − y = z)

g) ∃x∃y∃z(x − y = z)

h) ∃x∀y∀z(x − y = z)

Problem 12 (10pts)

Prove that 8 n^2 + n is O( n

2 2 −^ 5).

SCRATCH PAPER