Graph theory Flashcards

1
Q

Complete graph

A

Everyone is directly connected to everyone (triangle, star, etc)

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

Simple graph

A

No loop, or many edges

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

Adjacency matrix

A

How many connections between 2 vertices there are ( from is row to is column)

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

Strongly connected graph

A

Can get to every vertex from any vertex IN ANY DIRECTION

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

Connected graph

A

Can get to every vertex from any vertex

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

Sum in row in an adjacency matrix

A

In degree

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

Sum in column of an adjacency matrix

A

Out degree

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

Walk

A

Sequence of vertices visitied

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

Length of a walk

A

How many edges you visited

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

How do you see how many ways there are to have a walk of length n from A to B

A

You raise the adjacency matrix to the power of that n

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

How do you find a number of walks length n and less

A

M^1 + M^2+M^3…+M^n

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

Trail

A

No edge is repeated

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

Eulerian trail

A

Every edge is visited exactly once

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

Circuit

A

Trail that ends at its beginning point

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

Eulerian circuit

A

Trail that ends at its beginning point and visits every edge exactly once

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

What order are odd degree vertices in an Eulerian circuit

A

Start and finish points

17
Q

Semi - Eulerian

A

Has one pair of odd vertices

18
Q

What does Chinese postman want to achieve

A

Least weight, every edge once, cycle

19
Q

How to solve Chinese Postman

A

All even : Sum of all weights
One pair odd: their own connection and sum of all weights
More than one pair odd: Their minimum pairing plus sum of all weights

20
Q

Process of odd pairings CP?

A

Find the pair of odds that has the least weight, draw dotted lines that can be repeated.

21
Q

Tree

A

Connected graph with no cycles

22
Q

Kruskal’s Algorithm

A

1) Find edge with least weigth
2) Add the edge of least weight next to it that hasnt been selected yet and not in a cycle
3) Keep going till done

23
Q

Primm’s Algorithm

A

1) Select any vertex
2) Add the edge of least weight next to it (not in a cycle!)
3) Repeat

24
Q

Path

A

No vertex shall be repeated

25
Hamiltonian path
Each vertex is visited only once
26
Cycle
No vertex repeated and same start and finish points
27
Hamiltonian Graph
Has a cycle
28
Semi - Hamiltonian
Has a hamiltonian path
29
What does Travelling Salesman want
Least weight, no vertex repeated, same finish and start
30
Conditions for the Travelling Salesman
1. Complete graph 2. Satisfy triangle inequality
31
Nearest neighbour algorithm
Upper bound. 1. Any vertex 2. Cheapest unvisited edge 3. Come back where started
32
Deleted Vertex algorithm
Lower bound 1. Any vertex removed with its edges 2. Do a minimum spanning tree 3. Add 2 cheapest initially removed edges
33