Docsity

First Midterm on Discrete Structures | CS 173, Exams of Discrete Structures and Graph Theory

Toggle sidebar
bg1
CS173: Discrete Mathematical Structures, Spring 2008
First Midterm — February 14, 2008, 9:30am-10:45am
Name: Net ID:
Circle your discussion section.
Time Th 12:00-12:50 Th 1:00-1:50 Th 2:00-2:50 Fri 10:00-10:50 Fri 11:00-11:50
Discussion
Section
1A 2A 3A 4A 5A
Aparna Tracy Mo Dan M. Dan M.
A-H A-Kr A-Me A-Lin A-N
1B 2B 3B 4B 5B
Dan S. Nana Lucas Yuzi Dan S.
I-Z Ku-Z Mi-Z Liu-Z O-Z
Instructions
1. This is a closed-everything exam. No notes or electronics of any kind are allowed.
2. Print your full name and your NetID in the boxes above.
3. Print your name at the top of every page.
4. Please write clearly and legibly. If we can’t read your answer, we can’t give you credit.
5. You have 75 minutes to complete the exam, plan accordingly. Do not spend too much
time on any one of the problems. Problems do not necessarily appear in order of
difficulty.
6. You may write “I Don’t Know” on any problem to receive 25% of the total credit.
However, you must ONLY write “I Don’t Know”. If you write anything else, it will be
graded as though it is a solution.
# 0 1-6 7 8 9 10 11 12 13 Total
Max 5 30 8 12 10 10 15 15 15 120
Score
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download First Midterm on Discrete Structures | CS 173 and more Exams Discrete Structures and Graph Theory in PDF only on Docsity!

CS173: Discrete Mathematical Structures, Spring 2008

First Midterm — February 14, 2008, 9:30am-10:45am

Name: Net ID:

Circle your discussion section.

Time Th 12:00-12:50 Th 1:00-1:50 Th 2:00-2:50 Fri 10:00-10:50 Fri 11:00-11:

Discussion

Section

1A 2A 3A 4A 5A

Aparna Tracy Mo Dan M. Dan M.

A-H A-Kr A-Me A-Lin A-N

1B 2B 3B 4B 5B

Dan S. Nana Lucas Yuzi Dan S.

I-Z Ku-Z Mi-Z Liu-Z O-Z

Instructions

1. This is a closed-everything exam. No notes or electronics of any kind are allowed.

2. Print your full name and your NetID in the boxes above.

3. Print your name at the top of every page.

4. Please write clearly and legibly. If we can’t read your answer, we can’t give you credit.

5. You have 75 minutes to complete the exam, plan accordingly. Do not spend too much

time on any one of the problems. Problems do not necessarily appear in order of

difficulty.

6. You may write “I Don’t Know” on any problem to receive 25% of the total credit.

However, you must ONLY write “I Don’t Know”. If you write anything else, it will be

graded as though it is a solution.

# 0 1-6 7 8 9 10 11 12 13 Total

Max 5 30 8 12 10 10 15 15 15 120

Score

Course Questions

  1. The easy problem:

(a) [1 point] How many homeworks are you allowed to drop?

(b) [1 point] What is the penalty for submitting late homework?

(c) [1 point] What percentage of your course grade is devoted to discussion section partic- ipation?

(d) [2 points] Circle the sources of information that you are not allowed to use while working on CS173 homework. i. The CS173 website. ii. Discussions with your friend Sarah who took CS173 last semester. iii. A textbook (other than the course text by Ensley and Crawley). iv. A brainstorming session with Josh, who is also taking CS173. v. A draft of the homework solutions that Josh produced after the brainstorming ses- sion. vi. Your section leader. vii. Wikipedia (a freely available online encyclopedia).

  1. Let A be the set of students and B be the set of classes that Albert takes. Consider the following predicates: - P (x) means “x is stinky” - Q(x) means “x has showered” - R(x, y) means “x sits next to Albert in class y”

Which of the following is equivalent to the statement “In every class Albert takes, some student that has not showered and is stinky sits next to Albert.”

(a) ∃y ∈ B, ∀x ∈ A, R(x, y) ∨ P (x) (b) ∃y ∈ B, ∀x ∈ A, R(y, x) ∨ P (x) (c) ∀y ∈ B, ∃x ∈ A, if R(x, y) then ¬Q(x) (d) ∃y ∈ B, ∀x ∈ A, R(x, y) ∨ P (x) ∨ ¬Q(x)

(e) ∃y ∈ B, ∀x ∈ A, R(y, x) ∨ P (x) ∨ ¬Q(x) (f) ∀y ∈ B, ∃x ∈ A, R(y, x) ∧ P (x) ∧ ¬Q(x) (g) ∀y ∈ B, ∃x ∈ A, R(x, y) ∧ P (x) ∧ ¬Q(x) (h) None of the above.

  1. Which of the following is not a member of the set P({ 4 , 5 }) × { 1 , 2 , 3 } × {π, e}?

(a) (4, { 1 , π}) (b) (∅, 2 , π) (c) ({ 4 , 5 }, 2 , e) (d) ({ 4 }, 3 , π) (e) None of the above.

  1. Let A(x) be the predicate “x is honest”, and let B(x) be the predicate “x is a politician”. Let S be the set of people in the world. Which of the following is equivalent to the negation of the statement: ∀x ∈ S, if ¬A(x) then B(x)?

(a) All honest politicians are people. (b) Some dishonest person is not a politi- cian. (c) Some honest person is not a politician. (d) Every politician is honest.

(e) No politician is honest. (f) There is an honest politician. (g) There is a dishonest politician. (h) None of the above.

Short Answer

Write your solutions in the space provided.

  1. [8 points] Fill in the blanks.

(a) Every proof by induction is an argument that there can be no (2 words). (b) A proof by induction consists of three parts: the introduction (e.g. “The proof is by induction on n.”), the (2 words), and the (2 words). (c) The (2 words) allows us to assume that theorem holds for all smaller inputs than the one we are presently considering.

  1. [12 points] Express the following sets as simply as you can. Use explicit lists for finite sets. For infinite sets, use set builder notation (both “form description” and “property description” answers are acceptable). Let A = {n ∈ Z : n is even}, B = {n ∈ { 2 , 3 , 4 ,.. .} : n is prime}, C = {n^2 : n ∈ Z}, and D = { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 }.

(a) B ∩ C

(b) C − A

(c) (B ∩ D) × (A ∩ C ∩ D)

(d) P(D ∩ C ∩ A) ∪ P((D ∩ C) − A)

Long Answer (15 points each)

Write your solutions in the space provided. (If you run out of room, you may continue your answer on another page, but please tell us where to look!)

  1. Prove that for each integer n ≥ 0, the following identity holds:

∑^ n

k=

2 k^ = 2n+1^ − 1.

  1. Let S be a subset of { 1 , 2 ,... , 3 n} which contains 2n + 1 numbers. Show that S contains 3 consecutive integers.

(scratch paper)