Sets, Relations, Functions, Graphs




CS154

Chris Pollett

Jan. 28, 2013

Outline

Introduction

Sets

Now let's get started with some actual course material...

Propositions

To make statements (true or false propositions) about sets we will build up formulas starting with membership of some variables in sets, say `x in A` or `y in B`, and then use the connectives `forall`, `exists`, `^^`, `vv`, `not`, `implies`:

Subsets

More on sets

Set comprehension and basic ways to make new sets

Examples, Partitions, and DeMorgan's Laws

Quiz (Sec 1)

Which of the following is true?

  1. XML can only be used to specify regular expressions.
  2. Computability theory is mainly concerned with which strings are compressible.
  3. Regular expressions might be useful for string matching.

Quiz (Sec 3)

Which of the following is true?

  1. Context-Free Grammars are useful in the design of compression algorithms.
  2. XML is a tag-based language for defining Turing Machines.
  3. We said in class that regular expressions are typically used to check the syntax of programs in a Java.

Cartesian Product and Relations

Power Set

Successor sets

Axiom of Infinity

The Set of Natural Numbers

Functions

Types of Functions

Size of sets