{br} STUCK with your assignment? {br} When is it due? {br} Get FREE assistance. Page Title: {title}{br} Page URL: {url}
UK: +44 748 007-0908, USA: +1 917 810-5386 [email protected]

Part 1: Boolean Algebra:

1. Write x ⊕ y in disjunctive normal form and conjunctive normal form. Using of these forms, simplify these expressions:
a) x ⊕ 0
b) x ⊕ 1
c) x ⊕ x
d) x ⊕ x ̅

2. Find the sum-of-products expansions of the Boolean function F(x, y, z) that equals 1 if and only if:
a) x = 0.
b) xy = 0.
c) x + y = 0.
d) xyz = 0

3. Express each of these Boolean functions using the operators ⋅ and −.
a) x + y + z
b) x + y ̅(x ̅ + z)
c) (x + y ̅ ) ̅
d) x ̅(x + y ̅ + z ̅)

Part 2: Sets:

1. For each of these pairs of sets, determine whether the first is a subset of the second, the second is a subset of the first, or neither is a subset of the other.
a) the set of people who speak English, the set of people who speak English with an Australian accent
b) the set of fruits, the set of citrus fruits
c) the set of students studying discrete mathematics, the set of students studying data structures
d) the set of students in the college of computing and IT, the set of students at UDST

2. Determine whether these statements are true or false.
a) ∅ ∈ {∅}
b) ∅ ∈ {∅, {∅}}
c) {∅} ∈ {∅}
d) {∅} ∈ {{∅}}
e) {∅} ⊂ {∅, {∅}}
f ) {{∅}} ⊂ {∅, {∅}}
g) {{∅}} ⊂ {∅, {{∅}}}
h) ∅ ⊂ {{∅}, {{∅}}}

3. Can you conclude (with a proof) that A = B if A, B, and C are sets such that
a) A ∪ C = B ∪ C?
b) A ∩ C = B ∩ C?
c) A ∪ C = B ∪ C and A ∩ C = B ∩ C?

4. Sets in python
a) Write a code to generate the set setA of positive integers less than 1000 which last two digits are divisible by 43 (example 186 is in the set because 86 is divisible by 43)
b) Write a code to generate the set setB of positive integers less than 1000 which first two digits are divisible by 24 (example 725 is in the set because 72 is divisible by 24)
c) Write a code to compute setC the union of setA and setB
d) Write a code to compute setD the intersection of setA and setB
e) Check using a python code that |setA|+|setB|=|setC|+|setD|
f) Write a function cartesian that has two sets as input and returns their cartesian product as output (without importing any library)!
g) Use your function to find the cartesian product between setD and the set of colors on a traffic light.

 

 

This question has been answered.

Get Answer
WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
👋 Hi, how can I help?