Professional Documents
Culture Documents
CS-210 Homework 1: 1 Problem 1
CS-210 Homework 1: 1 Problem 1
1 Problem 1
Collaborated with 21100173 Waleed Imran Hashmi
(a) ∃ [p(x)]
(b) ∃ [s(x) ∧ p(x)]
2 Problem 2
Collaborated with 21100173 Waleed Imran Hashmi
(a) For all 3 and 4 sided polygons, a polygon is either a quadrilateral or a triangle but never both. True
(b) For all p3 and 4 sided polygons, if a polygon is an isosceles triangle, then it is an equilateral triangle.
False
(c) For some 3 and 4 sided polygons,a polygon is a triangle and has an interior angle that exceeds 180
degree. False
(d) For all 3 and 4 sided polygons, a polygon is a triangle and all interior angles are equal only if the
polygon is an equilateral triangle. False.
(e) For some 3 and 4 sided polygons, a polygon is a quadrilateral and not a rectangle. True
(f) For some 3 and 4 sided polygons, a polygon is a rectangle and is not a square. True
(g) For all 3 and 4 sided polygons,if all sides are equal, then the polygon is an equilateral triangle. False
(h) For all 3 and 4 sided polygons,if polygon is a triangle then the interior angles does not exceed 180.
True
(i) For all 3 and 4 sided polygons, only if the polygon is a square then all interior angles are equal and all
sides are equal. False
(j) For all 3 and 4 sided polygons, if the polygon is a triangle then all interior angles are equal only if all
sides are equal. True
1
3 Problem 3
Collaborated with 21100173 Waleed Imran Hashmi
(a) False
(b) True
(c) True
(d) False
4 Problem 4
Collaborated with 21100173 Waleed Imran Hashmi
(a) If P is a rectangle, then P is a square(converse,False)
(b) If P is not a rectangle, then P is not a square(contrapositive,True)
(c) If P is not a square, then P is not a rectangle(inverse,True)
5 Problem 7
Collaborated with 21100173 Waleed Imran Hashmi
6 Problem 8
Collaborated with 21100173 Waleed Imran Hashmi
(a) Left side
(¬P∨R) ∨ (¬Q∨R)
R ∨ (¬P∨¬Q)
R ∨ ¬(P∧Q)
¬(P∧Q) ∨ R
(P∧Q) → R
2
7 Problem 12
Collaborated with 21100173 Waleed Imran Hashmi
8 Problem 13
Collaborated with 21100173 Waleed Imran Hashmi
(a) ∃x → ∀y P(x,y)
∃x ∃y → P(x,y)