# Midterm Spring 2025 Discrete Mathematics - Midterm - Spring 2025 Date: 2026-04-21 URL: https://elte.darthdemono.com/Discrete-Mathematics-L+Pr/Midterm/Midterm-Spring-2025 Tags: Sample, Midterm, DiscreteMathematics, Maths --- Discrete Mathematics - Midterm - Spring 2025 NAME: NEPTUN code: Group number/Class teacher: Duration: 90 minutes. Total score: The maximal total score achievable in the midterm test is 40 points. Success criterion: In order to successfully pass this test, you need to achieve at least 16 points. Equipment: Only blank papers and pen allowed, no calculators. Instructions Each task must be solved on paper using pen. Please: write your name, Neptun code and the name of your practice class teacher on the top of this exam paper; write your name and Neptun code on the top of each paper you submit; note that in most questions justification is required. Just an answer to these questions without any proof is worth very few marks only. Please do not forget to justify your answers. (Applying and showing the steps of a method learnt in the class — where relevant — is regarded as sufficient justification.) note that a ‘yes’ or ‘no’ answer on its own without any justification is worth 0 marks only; after finishing the test, place all the papers with your solutions behind this exam paper and in order for the papers to stay together please fold them into half (parallel to the longer side); note that the actual test paper will be shared on Canvas, hence you will be able to obtain it. In Question 6 you have a choice between two questions: You do not need to solve both of them, please choose just one of them. Thank you and all the best for the test! Questions 1. a) On the set of all people consider the following predicates: L(x) : x is a lawyer; C(x) : x is crafty; F(x,y) : x and y are friends. (We assume friendships to be mutual, i.e. F(x,y) holds if and only if F(y,x) is true.) i. Express the following statement using a formula: Every lawyer has a crafty friend, but it is not true that every friend of every lawyer is crafty. ii. Write down the negation of the above statement using a formula. If you negate the formula you gave in part 1(a)i, please perform at least one step of simplification on the negated formula. b) For each of the equalities below decide if it is true for every set A, B and C. Prove your answers. i. A∖(B∪C)=(A∖B)∪(A∖C) ii. A∖(B∩C)=(A∖B)∪(A∖C) 2. Consider the binary relations R={(1,4),(1,5),(2,7),(3,2),(6,1),(6,6),(7,4),(7,5),(7,7)} S={(1,4),(2,1),(3,7),(4,1),(4,6),(5,3),(5,4),(5,5),(6,6)} Find each of the following: a) dmn(S)△rng(R) b) R({0,1,4,5,6,8}) c) R−1∣{2,4,5,7}​ d) S∘R (7 marks) 3. a) Let ρ={(x,y)∈Z×Z∣2x+1=3y−5}. Find ρ({−1,0,1,2,3,4}) and ρ−1({−1,0,1,2,3,4}). b) Given R={(x,y)∈R×R∣6x−1=24y−3​} and S={(x,y)∈R×R∣y2+2=7x} find the composition S∘R. (7 marks) 4. a) Consider the binary relation R={(1,1),(1,2),(1,3),(2,1),(2,2),(2,4),(3,1),(3,3),(4,2)} on set X={1,2,3,4}. Decide whether R is reflexive, symmetric, transitive and/or anti-symmetric. Justify each of your answers. b) On set A={1,2,3,4,5} construct a relation R which satisfies all of the following properties: it is not transitive, not symmetric, not anti-symmetric and R({4})={1,5}. (6 marks) 5. a) For each of the following relations decide if it is an equivalence relation. Prove your answers. i. R1​={(x,y)∈R×R∣xy≥0} on R ii. R2​={(x,y)∈Z×Z∣4∣(x−y)} on Z b) For each of those relations above which are equivalence relations, find the partition determined by the equivalence relation. (6 marks) There are two versions of Question 6, which you can choose from. Please choose one of the two versions: Version 1 6. For each of the relations below decide if it is a partial order. Justify your answers. a) T1​={(1,1),(1,3),(1,4),(2,2),(2,3),(2,4),(3,3),(3,4),(4,4)} on set X={1,2,3,4}. b) T2​={(x,y)∈Z×Z∣5∣(x−y)} on Z. c) T3​={(x,y)∈Z×Z∣x+y≥2x} on Z. (7 marks) Version 2 6. a) Decide about each of the relations below if it is a function, justifying your answer. i. f1​⊆Y×Y, f1​={(a,c),(b,b),(d,c),(e,a)}, where Y={a,b,c,d,e,f}. ii. f2​⊆R×R, f2​={(x,y)∈R×R∣x3−1=y2+2}. iii. f3​⊆R×R, f3​={(x,y)∈R×R∣44x−6​=6∣y∣+3​}. b) For each of the above relations that is a function, decide if it is injective, surjective and/or bijective. Justify your answers. (7 marks)