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 3 out of 22 pages
Other

COS1501 Assignment 2 2021

Document preview thumbnail
Preview 3 out of 22 pages

UNISA COS1501 Theoretical Computer Science Assignment TWO of 2021 solutions.

Content preview

COS1501 Assignment 2 2021



Question 1

[(𝐴 ∩ 𝐵)′ − 𝐶] ∩ [(𝐴 + 𝐵) − 𝐶]




𝐴∩𝐵




(𝐴 ∩ 𝐵)′ (𝐴 + 𝐵)




(𝐴 ∩ 𝐵)′ − 𝐶 (𝐴 + 𝐵) − 𝐶

,[(𝐴 ∩ 𝐵)′ − 𝐶] ∩ [(𝐴 + 𝐵) − 𝐶]




Question 1 FOUR



Question 2



𝑈 = {1, 2, 3, 4}
𝐴, 𝐵, 𝐶 𝑎𝑟𝑒 𝑠𝑢𝑏𝑠𝑒𝑡𝑠 𝑜𝑓 𝑈


(𝐴 − 𝐵) ∪ 𝐶 ′ = (𝐶 ′ − 𝐵) + 𝐴



1. 𝐴 = {1}, 𝐵 = {2} 𝑎𝑛𝑑 𝐶 = {3}

𝐿𝐻𝑆 = (𝐴 − 𝐵) ∪ 𝐶 ′
𝐿𝐻𝑆 = (𝐴 − 𝐵) ∪ (𝑈 − 𝐶)
𝐿𝐻𝑆 = ({1} − {2}) ∪ ({1, 2, 3, 4} − {3})
𝐿𝐻𝑆 = {1} ∪ {1, 2, 4}
𝐿𝐻𝑆 = {1, 2, 4}

𝑅𝐻𝑆 = (𝐶 ′ − 𝐵) + 𝐴
𝑅𝐻𝑆 = ((𝑈 − 𝐶) − 𝐵) + 𝐴
𝑅𝐻𝑆 = (({1, 2, 3, 4} − {3}) − {2}) + {1}
𝑅𝐻𝑆 = ({1, 2, 4} − {2}) + {1}
𝑅𝐻𝑆 = {1, 4} + {1}
𝑅𝐻𝑆 = {4}

, 𝐿𝐻𝑆 ≠ 𝑅𝐻𝑆

𝑇ℎ𝑖𝑠 𝑐ℎ𝑜𝑖𝑐𝑒 𝑜𝑓 𝐴, 𝐵 𝑎𝑛𝑑 𝐶 𝑐𝑎𝑛 𝑏𝑒 𝑢𝑠𝑒𝑑 𝑎𝑠 𝑎 𝑐𝑜𝑢𝑛𝑡𝑒𝑟𝑒𝑥𝑎𝑚𝑝𝑙𝑒 𝑡𝑜 𝑝𝑟𝑜𝑣𝑒 𝑡ℎ𝑎𝑡
(𝐴 − 𝐵) ∪ 𝐶 ′ = (𝐶 ′ − 𝐵) + 𝐴 𝑖𝑠 𝑛𝑜𝑡 𝑎𝑛 𝑖𝑑𝑒𝑛𝑡𝑖𝑡𝑦.


1 is TRUE.

2. 𝐴 = {1}, 𝐵 = {1} 𝑎𝑛𝑑 𝐶 = {2}

𝐿𝐻𝑆 = (𝐴 − 𝐵) ∪ 𝐶 ′
𝐿𝐻𝑆 = (𝐴 − 𝐵) ∪ (𝑈 − 𝐶)
𝐿𝐻𝑆 = ({1} − {1}) ∪ ({1, 2, 3, 4} − {2})
𝐿𝐻𝑆 = ∅ ∪ {1, 3, 4}
𝐿𝐻𝑆 = {1, 3, 4}

𝑅𝐻𝑆 = (𝐶 ′ − 𝐵) + 𝐴
𝑅𝐻𝑆 = ((𝑈 − 𝐶) − 𝐵) + 𝐴
𝑅𝐻𝑆 = (({1, 2, 3, 4} − {2}) − {1}) + {1}
𝑅𝐻𝑆 = ({1, 3, 4} − {1}) + {1}
𝑅𝐻𝑆 = {3, 4} + {1}
𝑅𝐻𝑆 = {1, 3, 4}

𝐿𝐻𝑆 = 𝑅𝐻𝑆

𝑇ℎ𝑖𝑠 𝑐ℎ𝑜𝑖𝑐𝑒 𝑜𝑓 𝐴, 𝐵 𝑎𝑛𝑑 𝐶 𝑐𝑎𝑛𝑛𝑜𝑡 𝑏𝑒 𝑢𝑠𝑒𝑑 𝑎𝑠 𝑎 𝑐𝑜𝑢𝑛𝑡𝑒𝑟𝑒𝑥𝑎𝑚𝑝𝑙𝑒 𝑡𝑜 𝑝𝑟𝑜𝑣𝑒 𝑡ℎ𝑎𝑡
(𝐴 − 𝐵) ∪ 𝐶 ′ = (𝐶 ′ − 𝐵) + 𝐴 𝑖𝑠 𝑛𝑜𝑡 𝑎𝑛 𝑖𝑑𝑒𝑛𝑡𝑖𝑡𝑦.


2 is FALSE.


3. 𝐴 = {1, 2}, 𝐵 = {1, 2} 𝑎𝑛𝑑 𝐶 = {3}

𝐿𝐻𝑆 = (𝐴 − 𝐵) ∪ 𝐶 ′
𝐿𝐻𝑆 = (𝐴 − 𝐵) ∪ (𝑈 − 𝐶)
𝐿𝐻𝑆 = ({1, 2} − {1, 2}) ∪ ({1, 2, 3, 4} − {3})
𝐿𝐻𝑆 = ∅ ∪ {1, 2, 4}
𝐿𝐻𝑆 = {1, 2, 4}

𝑅𝐻𝑆 = (𝐶 ′ − 𝐵) + 𝐴
𝑅𝐻𝑆 = ((𝑈 − 𝐶) − 𝐵) + 𝐴
𝑅𝐻𝑆 = (({1, 2, 3, 4} − {3}) − {1, 2}) + {1, 2}
𝑅𝐻𝑆 = ({1, 2, 4} − {1, 2}) + {1, 2}
𝑅𝐻𝑆 = {4} + {1, 2}
𝑅𝐻𝑆 = {1, 2. 4}

𝐿𝐻𝑆 = 𝑅𝐻𝑆

𝑇ℎ𝑖𝑠 𝑐ℎ𝑜𝑖𝑐𝑒 𝑜𝑓 𝐴, 𝐵 𝑎𝑛𝑑 𝐶 𝑐𝑎𝑛𝑛𝑜𝑡 𝑏𝑒 𝑢𝑠𝑒𝑑 𝑎𝑠 𝑎 𝑐𝑜𝑢𝑛𝑡𝑒𝑟𝑒𝑥𝑎𝑚𝑝𝑙𝑒 𝑡𝑜 𝑝𝑟𝑜𝑣𝑒 𝑡ℎ𝑎𝑡
(𝐴 − 𝐵) ∪ 𝐶 ′ = (𝐶 ′ − 𝐵) + 𝐴 𝑖𝑠 𝑛𝑜𝑡 𝑎𝑛 𝑖𝑑𝑒𝑛𝑡𝑖𝑡𝑦.

Document information

Uploaded on
June 18, 2021
Number of pages
22
Written in
2021/2022
Type
Other
Person
Unknown
$9.68

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.
lyzo2005
4.2
(145)
Sold
733
Followers
372
Items
102
Last sold
11 months 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