Study this topic

Sets

A set is an unordered collection of distinct objects, called its elements or members.

Short notes5 min read

Relations

A relation records which elements of one set are associated with which elements of another: "a divides b", "x is a prerequisite of y", "page p links to page q". Formally, a (binary) relation from a set A to a set B is any subset R ⊆ A × B; we write a R b or (a, b) ∈ R.

Short notes7 min read

Functions

A function assigns to every element of one set exactly one element of another. Hash functions, encodings, permutations of an array, the transition function of an automaton and the indexing of an array are all functions.

Short notes5 min read