Decision Flashcards

1
Q

Vertex / Node

A

Point on a graph

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

Edge / arc

A

Like segment joining nodes

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

Weight

A

Number associated with the arc

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

What’s a graph

A

Certified connected by edges

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

Subgraph

A

A graph where all nodes and arcs belong to the main graph but just part of it

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

Degree / Valency / Order

A

Number of arcs on a node

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

Walk

A

A route through a graph along edges from one vertex to the next

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

Path

A

A walk where no nodes visited more than once

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

Trail

A

Walk where no edge is visited more than once

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

Cycle

A

Walk where start and end node are same, no node visited more than once

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

Hamiltonian cycle

A

Includes every node

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

Connected

A

Graph if all vertices are connected

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

Simple graph

A

No loops and only one edge connecting any pair of nodes

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

Digraph

A

When arcs have direction

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

Sum of degrees of nodes equal to

A

2 x no. edges

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

Euler’s handshaking lemma

A

Even no of odd nodes

17
Q

Tree

A

Connected graph with no cycles

18
Q

Spanning tree

A

Subgraph which includes all vertices

19
Q

Complete graph

A

Every node is directly connected to every node by a single edge
Kn

20
Q

Isomorphic graphs

A

Show same info but can be drawn differently

21
Q

Adjacency matrix

A

Describes the number of arcs joining corresponding nodes

22
Q

Distance matrix

A

The entries represent the weight of each arc not number of arcs

23
Q

Planar graph

A

Can be drawn in a plane such that no two edges meet except at a vertex

24
Q

Kruskal’s Algorithm finds:

A

Minimum spanning tree, shortest way of linking all nodes

25
Q

Minimum spanning tree is

A

Total length of arcs is as small as possible

26
Q

Hot to do Kruskal’s

A

1) sort arcs into ascending order if weight
2) select arc of least arc to start tree
3) consider next lowest, if cycle would form then reject, if not add to tree
4) repeat till all connected, doesn’t have to be connected during

27
Q

Prim’s Algorithm finds

A

Minimum spanning tree

28
Q

How to do Prim’s Algorithm

A

1) choose any vertex to start the tree
2) select arc of least weight that joins any vertex already in the tree to a new one
3) repeat

29
Q

Prim’s Algorithm with a Matrix how

A

1) choose any vertex to start
2) delete the ROW in matrix for that node
3) number the COLUMN in the matrix for the chosen vertex
4) put a ring around the lowest, I deleted entry in any of the numbered columns
5) ringed entry becomes next arc
6) repeat until all deleted

30
Q

Dijkstra’s Algorithm finds

A

Shortest path from S to T

31
Q

How to do Dijkstra’s Algorithm

A

1) label start vertex S, with the final label 0

2) y