100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten
logo-home
CS/MATH 1019 Discrete Math for Computer Science MATH 1019 Midtem Exam 1 Test 1 Question and Answers €14,71
In winkelwagen

Tentamen (uitwerkingen)

CS/MATH 1019 Discrete Math for Computer Science MATH 1019 Midtem Exam 1 Test 1 Question and Answers

 0 keer verkocht
  • Vak
  • Instelling

CS/MATH 1019 Discrete Math for Computer Science

Voorbeeld 2 van de 6  pagina's

  • 13 oktober 2024
  • 6
  • 2024/2025
  • Tentamen (uitwerkingen)
  • Vragen en antwoorden
  • Onbekend
avatar-seller
York University
CS/MATH 1019 Discrete Math for Computer
Science
CS/MATH 1019 Exam

Course Title and Number: CS/MATH 1019 Discrete Math
for CS
Exam Date: Midterm and Final Exam 2024- 2025
Instructor: [Insert Instructor’s Name]
Student Name: [Insert Student’s Name]
Student ID: [Insert Student ID]

Examination
180 minutes
Instructions:
1. Read each question carefully.
2. Answer all questions.
3. Use the provided answer sheet to mark your responses.
4. Ensure all answers are final before submitting the exam.
5. Please answer each question below and click Submit when you have
completed the Exam.
6. This test has a time limit, The test will save and submit automatically
when the time expires
7. This is Exam which will assess your knowledge on the course
Learning Resources.


Good Luck!

, lOMoARcPSD|46692070




YORK UNIVERSITY
SC/ MATH 1019 D
TEST #1
SOLUTIONS



The total number of points for the Test is 100.

1. (5+5 points) (a) Find a formula of Propositional Logic with just three propo-
sitional variables p, q, and r that has value T with values of p and r being T and
the value of q being F, and has value F for any other truth values of p, q, r.
Solution. p ∧ ¬q ∧ r.
(b) Find a formula of Propositional Logic with just three propositional variables
p, q, and r which is a contradiction.
Solution. (p ∧ ¬p) ∨ (q ∧ ¬q) ∨ (r ∧ ¬r) or (p ∧ ¬p) ∧ (q ∧ ¬q) ∧ (r ∧ ¬r).
2. (5+5+5 points) (a) Determine whether the following propositional formula is a
tautology. Show your work.
((p → ¬q) ∧ q) → ¬q.
Solution. This compound proposition is not a tautology because its value is F
whenever the values of q and p are T and F respectively.
(b) Prove that (q ∧ (p → ¬q)) → ¬p is a tautology using basic propositional
equivalences (Laws). Give the names of the Laws you use.
Solution.
(q ∧ (p → ¬q)) → ¬p
≡ (q ∧ (¬p ∨ ¬q)) → ¬p < Conditional Disjunction+Leibniz >
≡ (q ∧ ¬p) ∨ (q ∧ ¬q) → ¬p < Distributivity Law+Leibniz >
≡ (q ∧ ¬p) ∨ F → ¬p < Negation Law+Leibniz >
≡ (q ∧ ¬p) → ¬p < Identity Law+Leibniz >
≡ ¬(q ∧ ¬p) ∨ ¬p < Conditional Disjunction+Leibniz >
≡ (¬q ∨ ¬¬p) ∨ ¬p < De Morgan’s Law+Leibniz >
≡ ¬q ∨ (p ∨ ¬p) < Double Negation, Associativity of ∨+Leibniz >
≡ ¬q ∨ T < Negation Law+Leibniz >
≡ T < Domination Law+Leibniz >

(c) Write the contrapositive, converse, and inverse of the following: You sleep late
if it is Saturday.
Solution. ’If you don’t sleep late, then it is not Saturday’ (or it is not the case
that it is Saturday) (contrapositive).
’If you sleep late, then it is Saturday’ (converse).
’If it is not Saturday, then you don’t sleep late’ (inverse).

Date: Oct 19, 2023.
1




Downloaded by Jack mah
()

Dit zijn jouw voordelen als je samenvattingen koopt bij Stuvia:

Bewezen kwaliteit door reviews

Bewezen kwaliteit door reviews

Studenten hebben al meer dan 850.000 samenvattingen beoordeeld. Zo weet jij zeker dat je de beste keuze maakt!

In een paar klikken geregeld

In een paar klikken geregeld

Geen gedoe — betaal gewoon eenmalig met iDeal, creditcard of je Stuvia-tegoed en je bent klaar. Geen abonnement nodig.

Direct to-the-point

Direct to-the-point

Studenten maken samenvattingen voor studenten. Dat betekent: actuele inhoud waar jij écht wat aan hebt. Geen overbodige details!

Veelgestelde vragen

Wat krijg ik als ik dit document koop?

Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.

Tevredenheidsgarantie: hoe werkt dat?

Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.

Van wie koop ik deze samenvatting?

Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper YourAssignmentHandlers. Stuvia faciliteert de betaling aan de verkoper.

Zit ik meteen vast aan een abonnement?

Nee, je koopt alleen deze samenvatting voor €14,71. Je zit daarna nergens aan vast.

Is Stuvia te vertrouwen?

4,6 sterren op Google & Trustpilot (+1000 reviews)

Afgelopen 30 dagen zijn er 68175 samenvattingen verkocht

Opgericht in 2010, al 15 jaar dé plek om samenvattingen te kopen

Begin nu gratis
€14,71
  • (0)
In winkelwagen
Toegevoegd