Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 46 pages
Exam (elaborations)

CS 205: Discrete Structures I Midterm Exam 1 Solutions | Latest Fall 2025/26 - Rutgers University.

Document preview thumbnail
Preview 4 out of 46 pages

CS 205: Discrete Structures I Midterm Exam 1 Solutions | Latest Fall 2025/26 - Rutgers University.

Content preview

CS 205: Discrete Structures I Rutgers University


Discrete Structures I
MIDTERM
Date: November 5, 2025


Name:

NetID:

Section:




Instructions
1. Write your name, NetID, and section in the boxes above.
2. You are permitted four 8.5" x 11" sheets of handwritten notes (both sides). No other
resources are allowed.
3. The exam consists of [Number] problems worth [Total] points. Point values are indi-
cated for each problem.
4. You must write your solutions in the space provided.
5. Show all your work and provide clear justifications and proofs for your
answers. Answers without supporting work will not receive any credit.
6. For proofs, write clearly and logically. State your assumptions and any facts
used.
7. You may use any theorems or results proved in class without re-proving them, unless
the question explicitly asks for the proof.




Problem Points Score
1 [Points]
2 [Points]
Total [Total]




Page 1

,CS 205: Discrete Structures I Rutgers University


Problem 1: Logic and Predicates
(a) Let p, q, and r be propositions. Using a truth table, determine if the compound
proposition (p → q) ∧ (q → r) is logically equivalent to (p → r). Justify your
conclusion.


Solution
The propositions are not logically equivalent. Let A = (p → q) ∧ (q → r) and
B = (p → r). We construct the truth table:


p q r A B
T T T T T
T T F F F
T F T F T
T F F F F
F T T T T
F T F F T
F F T T T
F F F T T

For equivalence, the truth columns for A and B must be identical. Since they differ
(e.g., in row 3, where v(p) = T, v(q) = F, v(r) = T yields v(A) = F and v(B) = T ),
we conclude A ̸≡ B.




Page 2

,CS 205: Discrete Structures I Rutgers University


(b) Let p and q be two atomic propositions. By only Boolean Algebra equivalences
(and known equivalences such as De Morgan’s law or the ones given in the slides),
determine if the following is a tautology, contingent, or a contradiction.

(p ∧ (q ∧ ¬q)) =⇒ ¬(p =⇒ ¬q)


Solution
The proposition is a tautology.
We simplify the premise of the implication:

p ∧ (q ∧ ¬q) ≡ p ∧ F (Negation Law)
≡F (Domination Law)

Let the consequence of the implication be B = ¬(p → ¬q). The original proposition
is now F → B.

F → B ≡ ¬F ∨ B (Implication Equivalence)
≡T∨B (Negation)
≡T (Domination Law)

Since the expression simplifies to T regardless of the truth value of B (and thus p
and q), it is a tautology.




Page 3

, CS 205: Discrete Structures I Rutgers University


(c) Translate the following statements into symbolic logic using predicates, quantifiers,
and a specified domain.

(i) There is no integer x such that x2 − x = −1.
(ii) For every real number x, there is a real number y such that xy = 1.


Solution:
(i) There is no integer x such that x2 − x = −1.
Let the domain be Z. The statement is ¬∃x ∈ Z (x2 −x = −1), or equivalently,
∀x ∈ Z (x2 − x ̸= −1).
(ii) For every real number x, there is a real number y such that xy = 1.
Let the domain be R. The statement is ∀x ∈ R ∃y ∈ R (xy = 1).

If the domain is understood from context, these can be written as ¬∃x (x2 −x = −1)
and ∀x ∃y (xy = 1), respectively.




Page 4

Document information

Uploaded on
May 5, 2026
Number of pages
46
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$17.69

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
MindCraft
3.8
(47)
Sold
368
Followers
7
Items
2789
Last sold
5 hours ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions