2.1
Let
- is true
- is false
- is true
- is true
title:
Correct answers.2.2
Describe the following set by listing its elements
Hence, , , , .
title:
Correct answer.2.3
Describe the set of all even positive natural numbers a. in terms of a property of its elements
b. by recursion
Basis step: Recursive step: If then
title:
Mis-read even positive natural numbers as just positive natural numbers.2.4
Describe by recursion.
Basis step: Recursive step: If then and .
title:
Correct answer.2.5
Let . Describe each of the following:
title:
Correct answer.2.6
Show that if and are any sets, then always holds.
title:
From solutions.2.7
Show that there are sets such that .
title:
Assumed to be right, check over.2.8
Describe each of the following relations from to by listing their ordered pairs, where
a.
b.
b.
title:
Correct answer.2.9
For each of the following relations on the set , decide whether it is reflexive, and / or irreflexive, and / or symmetric, and / or antisymmetric, and / or transitive:
a.
digraph G {
1
2->2
2->3
2->4
3->2
3->3
3->4
}Reflexive: No Irreflexive: No Symmetric: No Antisymmetric: No Transitive: Yes
title:
Correct answer.b.
digraph G {
1->1
1->2
2->1
2->2
3->3
4->4
}Reflexive: Yes Irreflexive: No Symmetric: Yes Antisymmetric: No Transitive: Yes
title:
Partially correct answer.
Made mistake on symmetric, they are indeed symmetric.c.
digraph G {
1
3
2->4
4->2
}Reflexive: No Irreflexive: Yes Symmetric: Yes Antisymmetric: No Transitive: No
title:
Partially correct answer.
Apparently not transitive though.2.10
Take the relation in 2.9(a), .
a. Represent as directed graph.
digraph G {
1
2->2
2->3
2->4
3->2
3->3
3->4
}title:
Correct answer.
Remember to include the entire domain, e.g. stray `1`.b. Represent it by a matrix, with elements of listed as .
title:
Correct answer.b. Represent it by a matrix, with elements of listed as .
title:
Correct answer.2.11
Consider the following matrix:
Does this matrix represent any of the relations in 2.9a-c?
It can repesent 2.9b if we list as .
title:
Correct answer.2.12
Take the following relation on the set :
Represent by a matrix (with elements of listed as ) and use Warshall’s algorithm to determine the transitive closure of . Show working.
Round 1:
Round 2:
Round 3:
Hence .
digraph A {
label = "R"
a->b,c
b->b
c->a,b
}
digraph B {
label = "R*"
a->a,b,c
b->b
c->a,b,c
}title:
Correct answer.2.13
Consider the divisibility relation on the set .
a. Describe by listing ordered pairs.
title:
Correct answer.b. Draw the Hasse diagram of the relation.
digraph G {
1->2,3,6,12,24,36,48
2->6,12,24,36,48
3->6,12,24,36,48
6->12,24,36
12->24,36,48
24->48
}graph G {
rankdir = BT
1--2,3
2--6
3--6
6--12
12--24,36
24--48
}title:
Correct answer.