COMP 1002 Unit 6 overview

In this unit we will construct more complex discrete structures such as functions and relations, and discuss their types and properties. We will first define functions, and talk about functions that are one-to-one, onto and bijections, as well as function composition and inverse. Then, we will use the notion of bijection to talk about sizes of infinite sets, showing that a number of sets have the same cardinality as natural numbers (countable sets), yet other sets are uncountable. Then we will move to talking about binary relations where both elements of the relation come from the same set. These relations are represented by graphs (computer science graphs, which are a different object than graphs of functions plotted in a coordinate system!). We will describe a number of different types of binary relations, their closures (in particular transitive closure) and properties such as what makes a binary relation an order or equivalence.

Readings

Most of the material in this unit is covered in sections 2.3, 2.5, and chapter 9 in the textbook.

Learning objectives

In this unit you will learn a discrete, computer science view of functions and relations. You will learn about their types and operations one can do with them (such as computing an inverse of a function or a transitive closure of a relation). You will also learn about cardinalities of infinite sets: how to compare them, which sets are the same cardinality as natural numbers (countable), which sets are uncountable and how to prove that. Specifically, you will learn to do the following.

Vocabulary

You need to know the meaning of the following terminology (and respective notation):