Decision maths Flashcards

1
Q

What is a bipartite Graph?

A

A graph whose vertices are divided into two distinct sets. All edges go from a vertex in one set to a vertex in the other set.

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

How do you denote a bipartite graph?

A

with M vertices in one set, and N vertices in the other set:

Km,n

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

What is a subgraph?

A

A graph whose graph vertices and graph edges form subsets of the graph vertices and graph edges of a given graph.

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

What is a subdivision of a graph?

A

A subdivision occurs when a new vertex is added on an edge so that the edge becomes two edges.

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

What is a loop?

A

An edge that starts and finishes and the same vertex

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

When do vertices have multiple edges?

A

When there is more than one edge that connects them

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

What type of graph has no loops and no multiple edges?

A

A SIMPLE graph

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

What type of graph has one or more edges that have an arrow to indicate that you can only go in one direction?

A

A digraph

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

What is a trail?

A

A trail is a sequence of edges in which the end of one edge ( except the last ) is the beginning of the next, and no edge is repeated

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

What is a cycle?

A

A cycle is a closed trail in which no vertex is repeated.

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

What is a hamiltonian cycle?

A

A cycle that visits every vertex only once

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

What is a tree?

A

A simple connected graph with no cycles

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

What is a graph that has numbers (weights) associated with the edges?

A

A network, (can also be presented as a graph)

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

What is Euler’s formula for connected Planar graphs?

A

v - e + f = 2

v = number of vertices
e = edges
f = number of faces
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What makes a graph planar?

A

A graph is planar if it can be drawn in two dimensions without any edges crossing

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

What’s Kruskal’s algorithm?

A
  • Select the shortest edge

- At each stage, select the next shortest edge that is not connected to the vertices that are already connected

17
Q

What’s Prim’s algorithm?

A
  • Select any vertex to start from
  • Correct the nearest node that is not already connected
  • Repeat until all nodes are connected
18
Q

What are methods of finding the minimum spanning tree?

A

Prim’s and Kruskal’s algorithm

19
Q

How do you find the lower bounds of a route ( Travelling Salesperson Problem)

A
  • Remove a node
  • Complete a minimum spanning tree for the remaining nodes
  • Add the two shortest routes from the removed node back in

If this results in a tour, this is the optimal tour available

20
Q

How do you find the upper bound of a route?

Travelling Salesperson Problem

A
  • Choose an arbitary starting node
  • Add in the smallest arc to this node that is not yet in the tour
  • Repeat until all nodes are in the tour
  • Add an arc back to the start node ( shortest )
21
Q

How do you convert a classical problem to a practical problem?

A

Add on arcs between points that aren’t connected

22
Q

What is the route inspection algorithm?

A
  • Find the total weight of the network
  • Identify the odd vertices
  • Pair the odd vertices, and add up the pairs to find the smallest selection
  • Add this to the total weight of the network