Uploaded by Hyuk Shin

lab3

advertisement
COMP2012 Discrete Mathematics
Lab 3(week 4) Exercises
Model Answers
Q1)
Proof:
For an arbitrary π‘₯, by definition, π‘₯ ∈ (𝐴 ∪ 𝐡)′ ↔ π‘₯ ∉ (𝐴 ∪ 𝐡)
↔ π‘₯ ∉ 𝐴 and π‘₯ ∉ 𝐡
↔ π‘₯ ∈ 𝐴′ and π‘₯ ∈ 𝐡′
↔ π‘₯ ∈ 𝐴′ ∩ 𝐡′
Q2)
i)
[3 4
13
]
βˆ™
[
2
8
6
9 7
7 4
4 0
15
6]
3
= [3 × 13 + 4 × 8 + 2 × 6 3 × 9 + 4 × 7 + 2 × 4 3 × 7 + 4 × 4 + 2 × 0 3 × 15 + 4 × 6 + 2 × 3]
= [39 + 32 + 12
= [83 63
ii)
37
27 + 28 + 8 21 + 16 + 0 45 + 24 + 6]
75]
Calculate (𝐴 + 𝐡) βˆ™ 𝐢 and 𝐴 βˆ™ 𝐢 + 𝐡 βˆ™ 𝐢, where 𝐴 = [
𝐢=[
2 1
3 1
], 𝐡 = [
] and
3 2
0 1
1 4
]
3 2
(𝐴 + 𝐡) βˆ™ 𝐢 = ([2 1] + [3
3 2
0
2 1 1
π΄βˆ™πΆ+π΅βˆ™πΆ =[
]βˆ™[
3 2 3
11 24
=[
]
12 18
1
1
]) βˆ™ [
1
3
4
3
]+[
2
0
4
5 2 1
]=[
]βˆ™[
2
3 3 3
1 1 4
5
]βˆ™[
]=[
1 3 2
9
4
11 24
]=[
]
2
12 18
6 14
10
]+[
]
3 2
16
iii)
Let 𝐴 = [π‘Žπ‘–π‘— ], 𝐡 = [𝑏𝑖𝑗 ] and 𝐢 = [𝑐𝑖𝑗 ] be real-valued matrices of dimension π‘š × π‘›,
π‘š × π‘› and 𝑛 × π‘. Prove the distributive property for matrix addition over
multiplication:
(𝐴 + 𝐡) βˆ™ 𝐢 = 𝐴 βˆ™ 𝐢 + 𝐡 βˆ™ 𝐢
Proof:
Since the dimensions of 𝐴, 𝐡 and 𝐢 are π‘š × π‘›, π‘š × π‘› and 𝑛 × π‘ respectively, both
(𝐴 + 𝐡) βˆ™ 𝐢 and 𝐴 βˆ™ 𝐢 + 𝐡 βˆ™ 𝐢 are of the dimension π‘š × π‘.
Let 𝐷 = [𝑑𝑖𝑗 ] = (𝐴 + 𝐡) βˆ™ 𝐢 and 𝐸 = [𝑒𝑖𝑗 ] = 𝐴 βˆ™ 𝐢 + 𝐡 βˆ™ 𝐢 be two matrices with
dimension π‘š × π‘.
For the (𝑖, 𝑗) element in 𝐷 = [𝑑𝑖𝑗 ] = (𝐴 + 𝐡) βˆ™ 𝐢,
𝑑𝑖𝑗 = ∑ ( π‘Žπ‘–π‘˜ + π‘π‘–π‘˜ ) βˆ™ π‘π‘˜π‘— = ∑ π‘Žπ‘–π‘˜ βˆ™ π‘π‘˜π‘— + ∑ π‘π‘–π‘˜ βˆ™ π‘π‘˜π‘— = 𝑒𝑖𝑗
π‘˜=1,…,𝑛
π‘˜=1,…,𝑛
π‘˜=1,…,𝑛
Each element in 𝐷 and 𝐸 is identical, and dim(𝐷) = dim(𝐸). So 𝐷 = 𝐸, and
(𝐴 + 𝐡) βˆ™ 𝐢 = 𝐴 βˆ™ 𝐢 + 𝐡 βˆ™ 𝐢
Q3)
Proof:
Let π‘₯, 𝑦, 𝑧 ∈ β„•
If (π‘₯, 𝑦) ∈ 𝑅𝐷𝐼𝑉 ∧ (y, z) ∈ 𝑅𝐷𝐼𝑉 , by definition of 𝑅𝐷𝐼𝑉 , there exists integers π‘˜ and π‘š such that
π‘₯ = π‘˜π‘¦ and 𝑦 = π‘šπ‘§
So π‘₯ = π‘˜π‘¦ = π‘˜(π‘šπ‘§) = (π‘˜ βˆ™ π‘š)𝑧, where π‘˜ βˆ™ π‘š is also an integer, i.e. π‘₯ is divisible by 𝑧.
Thus (x, z) ∈ 𝑅𝐷𝐼𝑉 , and 𝑅𝐷𝐼𝑉 is transitive.
Q4) Is the relation ∈ between sets:
i)
Reflexive?
ii)
Symmetric?
iii)
Transitive?
If so, prove the corresponding property. If not, give a counterexample.
i)
No. ∅ ∉ ∅.
The empty set does not contain any element, and it cannot be an element of itself
either. (Note that ∅ ∉ ∅ but ∅ ⊆ ∅.) So ∈ is not reflexive.
ii)
No. ∅ ∈ {∅} but {∅} ∉ ∅.
{∅} denotes the set of empty set, i.e. a set which has empty set as its only element. So
there is ∅ ∈ {∅}.
The empty set does not have any element, so the set of empty set cannot be an
element of the empty set, i.e. {∅} ∉ ∅. So ∈ is not symmetric.
iii)
No. ∅ ∈ {∅} and {∅} ∈ {{∅}}, but ∅ ∉ {{∅}}.
∅ is the only element in {∅} , and {∅} is the only element in {{∅}}. Hence there is
∅ ∈ {∅} and {∅} ∈ {{∅}}.
∅ is not an element of {{∅}}. So ∈ is not transitive.
Download