Let U = {1, 2, 3,
4, 5, 6, 7, 8,
9, 10}, and let the...
Let U = {1, 2, 3,
4, 5, 6, 7, 8,
9, 10}, and let the digits of your ID to be the elements
of set A. For example if my ID is 21743911, then set A would be
{2,1,7,4,3,9}.
Write the bit string that represents set A above.
Let set B = {2, 3, 5, 6, 7, 10}. Write the bit string that
represents this set B.
What is the bit string for the difference of A and B?...
Let A = {0, 3, 6, 9, 12}, B = {−2, 0, 2, 4, 6, 8,...
Let A = {0, 3, 6, 9, 12}, B = {−2, 0, 2, 4, 6, 8, 10, 12}, and C
= {4, 5, 6, 7, 8, 9, 10}.
Determine the following sets:
i. (A ∩ B) − C
ii. (A − B) ⋃ (B − C)
Let S be the universal set, where: S = { 1 , 2 , 3 ,...
Let S be the universal set, where: S = { 1 , 2 , 3 , ... , 18 ,
19 , 20 } Let sets A and B be subsets of S, where: Set A = { 2 , 5
, 6 , 10 , 16 , 17 } Set B = { 5 , 6 , 9 , 11 , 15 , 16 , 17 , 18 ,
20 } C = { 2 , 3 , 4...
1. Let S = {a, b, c}. Find a set T such that S ∈ T...
1. Let S = {a, b, c}. Find a set T such that S ∈ T and S ⊂
T.
2. Let A = {1, 2, ..., 10}. Give an example of two sets S and B
such that S ⊂ P(A), |S| = 4, B ∈ S and |B| = 2.
3. Let U = {1, 2, 3} be the universal set and let A = {1, 2}, B
= {2, 3} and C = {1, 3}. Determine the...
let the universal set be U = {1, 2, 3, 4, 5, 6, 7, 8, 9}...
let the universal set be U = {1, 2, 3, 4, 5, 6, 7, 8, 9} with A
= {1, 2, 3, 5, 7} and B = {3, 4, 6, 7, 8, 9}
a.)Find (A ∩ B) C ∪ B
b.) Find Ac ∪ B.
Let p = (8, 10, 3, 11, 4, 0, 5, 1, 6, 2, 7, 9) and...
Let p = (8, 10, 3, 11, 4, 0, 5, 1, 6, 2, 7, 9) and let q = (2,
4, 9, 5, 10, 6, 11, 7, 0, 8, 1, 3) be tone rows. Verify that p =
Tk(R(I(q))) for some k, and find this value of k.
Let S = { 1 , 2 , 3 , ... , 18 , 19 ,...
Let S = { 1 , 2 , 3 , ... , 18 , 19 , 20 }
S = { 1 , 2 , 3 , ... , 18 , 19 , 20 } be the universal set. Let
sets A and B be subsets of S , where: Set A = { 4 , 6 , 10 , 11 ,
12 , 15 , 16 , 18 , 19 , 20 }
Set B = { 1 ,...
Consider the matrix list x = [[1, 2, 3], [4, 5, 6], [7, 8, 9]].
Write...
Consider the matrix list x = [[1, 2, 3], [4, 5, 6], [7, 8, 9]].
Write a list comprehension to extract the first column of the
matrix [1, 4, 7]. Write another list comprehension to create a
vector of twice the square of the middle column.
Given the following unordered array:
[0]
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]...
Given the following unordered array:
[0]
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]
W
X
D
T
P
N
R
Q
K
M
E
If the array was being sorted using
the SHELL sort and the halving
method,
and sorting into ASCENDING
order as demonstrated in the course content,
list the letters in the resulting
array, in order AFTER the FIRST pass.
[0]
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]
1. Let S and R be two relations below.
R = {(1, 3), (1, 2), (8,...
1. Let S and R be two relations below.
R = {(1, 3), (1, 2), (8, 0), (6, 9)}
S = {(7, 5), (1, 6), (3, 1), (0, 3), (9, 4), (8, 6)}
Please find S◦R and R◦S.
Given two relations S and R on Z below, please determine the
following relations.
R = {(a, b) |a + 2 = b}
S = {(a, b) |3a > b}
(a) R−1
(b) R
(c) R◦R
(d) R−1 ◦ R
(e) R−1...