Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

COSC 341 – Tutorial 1

This tutorial will reinforce the basic concepts of set theory. Most of the exercises
are directly from pages 36 and 37 of the textbook (Sudkamp, Languages and
Machines, 3rd edition).

1. Let X = {1, 2, 3, 4} and Y = {0, 2, 4, 6}. Give:

(a) X ∪ Y (the union of X and Y )


(b) X ∩ Y (the intersection of X and Y )
(c) X − Y (the complement of Y relative to X)
(d) Y − X (the complement of X relative to Y )
(e) P(X) (the power set of X)

2. Let X = {a, b, c} and Y = {1, 2}.

(a) List all the members of X × Y .


(b) List all total functions from Y to X.
(c) List all partial (but not total) functions from Y to X.

3. Let X be a set with 5 elements, and Y a set with 4 elements.

(a) How many elements are there in X × Y ?


(b) How many total functions are there from X to Y ?
(c) How many total functions are there from Y to X?
(d) How many partial (possibly total) functions are there from X to Y ?

4. Give examples of functions f : N → N that satisfy:

(a) f is total and injective but not surjective,


(b) f is total and surjective but not injective,
(c) f is total, injective and surjective, but is not the identity,
(d) f is not total, but is surjective.

5. Define a binary relation ∼ N by: n ∼ m if and only if n and m have


the same first digit (written in base 10). Show that ∼ is an equivalence
relation. How many equivalence classes does it have?

The mathematics in COSC341 is not difficult or technical. But, you do have to


have command of the basic concepts, such as the ones explored in this tutorial.
So, invest the time and the effort to make sure of that now! Ask questions;
finish the exercises at home; come and discuss them with Michael in his office.
Keep on top of it!

You might also like