dm1 - Problem Set - 4 - 2023 Autumn
dm1 - Problem Set - 4 - 2023 Autumn
dm1 - Problem Set - 4 - 2023 Autumn
Summary of theory
Partial orders
partial order, partially ordered set: A binary relation ⊆ X ×X on set X is a partial oder if it is reflexive,
transitive and anti-symmetric. Then (X, ) is a partially ordered set.
Let (X, ) be a partially ordered set. An element x ∈ X is called:
immediate predecessor: Let (X, ) be a partially ordered set. For any x, y ∈ X, x 6= y we say that x is
an immediate predecessor of y if 6 ∃z ∈ X : (z 6= x ∧ z 6= y ∧ x z y).
Hasse-diagram: A (finite) partially ordered set (X, ) can be represented on a Hasse-diagram as follows:
each element of X is represented by a ’dot’on the diagram. Two dots representing x and y, respectively
are connected by a line if and only if x is a predecessor of y or y is a predecessor of x. In this case we
place the dot representing the element which is a predecessor of the other one lower on the diagram than
the dot representing the other element.
comparable and incomparable elements: Two elements x and y of a partially ordered set (X, ) are said
to be comparable, if x y or y x holds; otherwise x and y are said to be incomparable.
(total) order: A partial order ⊆ X × X is called a total order (or order for short), if every pair of
elements x, y ∈ X is comparable, that is, if: ∀x, y ∈ X : x y or y x. In oder words: a (total) order
is a dichotomous partial order. In this case the pair (X, ) is called a totally ordered set (or ordered set
for short).
Functions
function: A relation f ⊆ X × Y is a function if: ∀x, y, y 0 : (x, y) ∈ f ∧ (x, y 0 ) ∈ f ⇒ y = y 0 .
Notations:
f ∈ X → Y ⇔ f ⊆ X × Y is a function.
f : X → Y ⇔ (f ∈ X → Y ∧ dmn(f ) = X).
A function f : X → Y is
1
ELTE IK Discrete mathematics I Problem set 4
Questions
Partial orders
Question 1: Let A = {2, 3, 6, 8, 9, 12, 18} ⊆ N+ , R ⊆ A × A and aRb ⇐⇒ a | b.
(a) Prove that R is a partial order on set A.
(b) Draw the Hasse-diagram of the partial order R.
Question 2:
(a) Prove that the relation is a partial order on N, where is defined as follows:
∀n, m ∈ N : n m ⇐⇒ ∃k ∈ N such that n + k = m.
(b) Define the binary relation R on N×N as follows: ∀m1 , m2 , n1 , n2 ∈ N : (m1 , n1 )R(m2 , n2 ) ⇐⇒
m1 ≤ m2 ∧ n1 ≤ n2 . Prove that R is a partial order on N × N.
Question 3: In each of the following examples decide if relation R is a partial order on the
underlying set.
(a) P is the set of all polynomials with real coefficients and R ⊆ P × P , f Rg ⇐⇒ deg f ≤ deg g
(b) R ⊆ Z × Z, aRb ⇐⇒ |a| ≤ |b|
(c) V is the set of all those vectors in R2 which are 10 units in length and R ⊆ V × V, xRy ⇐⇒
the angle from the positive real axis to vector x is less than or equal to the angle from the
positive real axis to vector y (we assume both of these angles to be in the interval [0; 2π[)
(d) R ⊆ R2 × R2 , xRy ⇐⇒ the length of vector x is less than or equal to the length of vector y.
Question 4: Decide which of the following relations are total orders on the set A = {1, 2, 3, 4}.
(a) f = {(1, 1), (1, 2), (1, 3), (1, 4), (2, 2), (2, 3), (2, 4), (3, 3), (3, 4), (4, 4)}
(b) f = {(1, 1), (1, 2), (1, 3), (1, 4), (2, 2), (2, 4), (3, 3), (4, 4)}
(c) f = {(1, 1), (1, 2), (1, 3), (1, 4), (2, 2), (2, 3), (2, 4), (3, 4)}
Functions
Question 5: In each of the following examples decide if the relation f is a function. If f is a
function then determine the domain and range of f and decide whether f is surjective, injective
and/or bijective.
(a) A = {1, 2, 3, 4, 5}, B = {10, 11, 12, 13, 14}, f ⊆ A × B, f = {(1, 11), (2, 11), (4, 12), (5, 10)}
(b) A = {1, 2, 3, 4}, B = {a, b, c, d, e, f }, f ⊆ A × B, f = {(1, a), (2, c), (3, e), (3, f ), (4, a)}
(c) A = {1, 2, 3, 4, 5}, B = {a, b, c, d, e, f }, f ⊆ A × B, f = {(1, a), (4, e), (5, d)}
(d) A = {1, 2, 3}, B = {1, 3, 5}, f ⊆ A × B, f = {(1, 1), (2, 5), (3, 5)}
Question 6: Let m ∈ R+ and A = {all isosceles triangles with height of m (from base)}, B =
R+ . Define the binary relation R ⊆ A × B as follows: aRb, a ∈ A, b ∈ B, if the area of a equals b.
Show that R is a function, and examine the properties of f (i.e. decide if f is surjective, injective
and/or bijective).
Question 7:
(a) Let f : R → R, f (x) := 3x − 4. Prove that function f is bijective, and find the inverse of f .
(b) Let g : R → R, g(x) := 3 − |x|. Prove that function g is neither injective, nor surjective.
2
ELTE IK Discrete mathematics I Problem set 4
Question 9: In each of the following examples decide if the given binary relation is a function.
(a) f1 = {(x, y) ∈ R × R | 7x = y 2 } ⊆ R × R
(b) f2 = {(x, y) ∈ R × R | x = y 2 + 6y} ⊆ R × R
(c) f3 = {(x, y) ∈ R × R | 7x2 − 6 = y} ⊆ R × R
(d) f4 = {(x, y) ∈ R × R+ 0 | y = |x|} ⊆ R × R0
+
Further questions
Question 10: Prove that the inverse of a partial order is also a partial order.
Question 13: Prove that the inverse of a function f is also a function if and only if f is injective.