Discrete Mathematics - Networks Flashcards

1
Q

Define Spanning tree

A

A sub graph that is a tree containing every vertex in the graph

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

How many edges will a spanning tree with n vertices have

A

n-1

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

What is a network

A

A weighted graph

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

What does the Minimum Spanning Tree represent

A

The spanning tree with the least weight

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

What is the Kruskal’s Algorithm used for

A

To find the MST

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

Describe the Kruskal’s Algorithm Process

A

1- List the edges in ascending weight order
2 - Choose the arc with the minimum weight
3 - Repeat step 2 whilst avoiding those that form a cycle and until all nodes have been connected

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

What is the Prim’s Algorithm used for

A

To find the MST

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

Describe the Prim’s Algorithm Process

A
  • Choose any node at random
  • Choose the arc of the minimum weight joining a connected node to an unconnected node
  • Repeat until all nodes are connected
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the Chinese Postman Problem used for

A

To find the shortest route that travelsat least once along each arc and returns to the starting point. This is an eulerian problem and can be solved using those principles.

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

How is the CPP or Route Inspection Problem, solved when Eulerian and Non-Eularian

A

Eulerian - The distance will be the sum of the arc weights
Non-Eulerian -
1 - Identify the odd nodes
2 - List all of the possible pairings between these nodes
3 - For each pairing find the shortest route between the nodes
4 - Choose the pairing with the smallest weigh to add, and add their weigths to the original weight

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

What is the travelling salesperson objective

A

To find a hamiltonian cycle (no repeated vertices, visits each vertex once and starts and ends at the same vertex.However the bigger the graph the more the possible cycles, this mean we need a bound to determine where the correct tour lies in

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

How do you find the upper bound of the network

A

Use the Nearest neighbor algorithm:
1 - Choose a starting point
2 - Select the arc with the least weight connecting to that arc
3 - Repeat step 2 until all vertices have been connected ensuring you don’t go backwards
4 - join the last vertex to the first
optimal tour <= least upper bound

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

How do you find the lower bound

A

1 - choose a vertex and remove 2 of its least weighted arcs
2 - find the MST of that residual set
3 - add the deleted arcs weight
If when finding the lower bound you find a cycle you’ve found the optimal tour

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

What is the interval for the optimal tour

A

LB <= OT <= UB

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