Week 2 - Relations, Functions and Induction Flashcards

1
Q

What is graph isomorphism?

A

A function that turns one representation of a graph into another (a graph showing the same information, but arranged differently)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a function?

A

Something that takes an element from set A as input and outputs a unique element. F(a) = b E B, or in other words f maps a to b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the domain and target?

A

Domain is the set which you’re mapping from, target is the set you’re mapping to f(x) = y, here x is the domain, y is the target

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the range of a function?

A

All the elements of a target space that are mapped by the function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a GIPO?

A

Given input, produce output. This is different from a function because one input can produce multiple outputs (surjection), and unlike a function not all of the domain elements have to be mapped in a GIPO

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is an onto/surjective function? What happens to the cardinality from A to B?

A

It maps to target elements at least once or more. |A| >= |B|

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an into/injective function? What happens to the cardinality from A to B?

A

It maps to target elements at most once, or none at all

|A| =

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a bijection? What happens to the cardinality from A to B?

A

It maps to all target elements exactly once. (both onto and into)

|A| = |B|

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a graph and what does it contain?

A

A set of vertices and edges. Vertices are the dots (node/neurons), edges are the lines (synapses)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Two vertices joined by an edge are _____, and the edge is ____ to each of those vertices. The vertices adjacent to vertex v, are called v’s ____

A

adjacent, incident, neighbours

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does the degree of a vertex mean?

A

The number of edges that emanate from it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the edge multiplicity?

A

The number of edges that meet at a vertex

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a path and cycle? What is its length?

A

Path - a walk where no vertices are repeated
Cycle - the only repetitions are the first and last vertex.
The number of edges it has its its length (of a path or cycle)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a forest? What is a tree?

A

A graph with no cycles is a forest, and a connected graph with no cycles is a tree. A forest is a collection of trees

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

When does induction not work?

A

When its not indexed by natural numbers (i.e. bounded by a lower bound)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How do you do a proof by induction?

A

Start with a base case (i.e. n = 1), inductive hypothesis (Assume whatever you are going to prove is smaller than or equal to k). Finish with a inductive step where you consider the statement with k+1 as the variable

17
Q

What does reflexive, symmetric, antisymmettric, transitive mean?

A

reflexive - (a,a), (b,b)
Symmetric - if (a,b) then (b,a)
Anti-symmetric - if (a,b) then (b,a) cannot exist, unless a=b
Transitive - if (a,b), (b,c) then (a,c)

18
Q

What are closure properties?

A

A set of numbers is said to be closed for a specific mathematical operation if the result of the operation on any two numbers is the set itself a member of the set

19
Q

Reflexive, transitive symmetric closues

A

basically transforming a set to contain these closures mean what numbers do you need to add to make that happen?

20
Q

What is an equivalence relation?

A

Something that is symmetrical, reflexive and transitive

21
Q

What is a partial ordering? What is a total ordering?

A

Partial ordering is reflexive, antisymmetric and transitive. Total ordering means every element needs to have a relationship with other elements

22
Q

What is a minimum element? What is a maximum element?

A

Minimum - it has no predecessor. Maximum - it has no successor