Docsity

Computer communication theory notes, Lecture notes of Computer Science

Toggle sidebar
bg1
MASENO UNIVERSITY
UNIVERSITY EXAMINATION 2023/ 2024
FIRST YEAR FIRST SEMESTER EXAMINATION FOR THE
DEGREE OF BACHELOR OF SCIENCE WITH
INFORMATION TECHNOLOGY
CIR 101: DISCRETE STRUCTURES I
Instruction:
•Attempt Question One (Compulsory) and any other two
questions.
1
pf3
pf4

Partial preview of the text

Download Computer communication theory notes and more Lecture notes Computer Science in PDF only on Docsity!

MASENO UNIVERSITY

UNIVERSITY EXAMINATION 2023/ 2024

FIRST YEAR FIRST SEMESTER EXAMINATION FOR THE

DEGREE OF BACHELOR OF SCIENCE WITH

INFORMATION TECHNOLOGY

CIR 101: DISCRETE STRUCTURES I

Instruction :

• Attempt Question One (Compulsory) and any other two

questions.

QUESTION ONE (Compulsory) [30 Marks]

(a) Let p and q be propositions: p : It is below freezing. q : It is snowing. Write the compound propositions below using p and q and logical connectives.

i It is below freezing and snowing. [1 Mark] ii. It is below freezing and not snowing. [1 Mark] iii. It is either below freezing or snowing. [1 Mark] iv. It is snowing unless it is below freezing. [1 Mark]

(b) Provide a combinatorial proof of the identity: [4 Marks] ( n + 1 k

n k − 1

n k

(c) Consider the statement ”3n + 2 is odd whenever n is odd”. Prove by contradic- tion. [3 Marks]

(d) (i) State the pigeonhole principle. [1 Mark] (ii) What is the minimum number of students required in a discrete mathemat- ics class to be sure that atleast six will receive the same grade, if there are five possible grades A, B, C, D and F. [3 Marks]

(e) What is the cardinality of the power set of {∅}? [2 Marks]

(f) (i) Given f : Z → Z. Show that a function f defined by f (x) = x^2 is not one-to-one. [2 Marks] (ii) Use mathematical induction to prove that for all natural numbers n, the ex- pression 4n^ − 1 is divisible by 3 [4 Marks]

(g) (i) Find the greatest common divisor of 512 and 1272 using the Euclidean algorithm. [3 Marks] (ii) Find the binary expansion of ( 363 ) 10 [3 Marks]

(h) State the principle of inclusion-exclusion. [1 Mark]

QUESTION TWO [20 Marks]

(a) How many different ways are there to seat four people around a circular table where two seatings are considered the same when each person has the same left neighbour and same right neighbour. [5 Marks]

QUESTION FIVE [20 Marks]

(a) If A = {a, b, c} and B = {d, e}, find:

(i) P (A), the power set of A. [2 Marks] (ii) A × B. [2 Marks]

(b) (i) Define equal sets. [1 Marks] (ii) If A and B are two sets, show that A = B if and only if A ⊆ B and B ⊆ A. [3 Marks] iii Using set builder notation and logical equivalence , show that (A ∩ B)c^ = Ac^ ∪ Bc. [3 Marks]

(c) Construct a truth table for (p → q) ∧ (¬p → q) [4 Marks]

(d) By use of correct logic gates, draw a circuit that gives (p ∨ ¬r) ∧ (¬p ∨ (q ∨ ¬r)). [5 Marks]