DS Assignment
DS Assignment
UNIVERSITY OF SINDH
FACULTY OF ENGINEERING AND TECHNOLOGY
DISCRETE STRUCTURES (SE24-316)
BSSW PART-I (MORNING/EVENING)
Instructions:
1. This assignment contains 10 marks, and each student should submit it individually.
6. Answer all questions in sequence. Draw tables, diagrams or graphs wherever required.
Assignment:
2. Express the statement "If the light is on, then the room is not dark" in symbolic logic. Also,
write its contrapositive, converse, and inverse.
3. Which of these are propositions? What are the truth values of those that are propositions?
4. Construct a combinational circuit using OR gates, and AND gates that produces the output
((¬𝑝 ∨ ¬𝑟) ∧ ¬𝑞) ∨ (¬𝑝 ∧ (𝑞 ∨ 𝑟)) from the input bits p, q and r.
6. Show that each of these conditional statements is a tautology by using truth tables.
a) [¬p ∧ (p ∨ q)] → q
b) [(p → q) ∧ (q → r)] → (p → r)
c) [p ∧ (p → q)] → q
d) [(p ∨ q) ∧ (p → r) ∧ (q → r)] → r
7. Define power set and cartesian product of set with examples. Let 𝐴 and 𝐵 be sets, using the
truth tables show that
a. (A ∩ B) ⊆ A
b. A ⊆ (A ∪ B)
c. A − B ⊆ A
d. A ∩ (B − A) = ∅
e. A ∪ (B − A) = A ∪ B
8. What is meant by composition of functions and why it is used.
Show that (𝑓 ∘ 𝑔)(𝑥) ≠ (𝑔 ∘ 𝑓)(𝑥) using an example of two functions 𝑓(𝑥) 𝑎𝑛𝑑 𝑔(𝑥).