Modelling with Algorithms

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/48

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

49 Terms

1
New cards

What is a recursive algorithm?

It repeats instructions on a previous value stored. The instructions used will define the algorithm's output.

2
New cards

What is a graph?

A visual display of data, consisting of a finite set of vertices connected by edges

3
New cards

What is an edge?

An edge joins one vertex to another or starts and ends at the same vertex (a loop)

4
New cards

What are continuous graphs?

They have an infinite set of possible points on the plane and an infinite number of points on any curve or line you draw (e.g. x,y)

5
New cards

What is an algorithm?

A set of precise instructions which, if followed, will solve a problem

6
New cards

What is a heuristic algorithm?

It solves the problem but doesn't necessarily give the optimum solution

7
New cards

What is the efficiency of an algorithm?

A measure of the speed or time of operation of the algorithm

8
New cards

What is the worst case scenario for the bubble sort algorithm?

Reverse order O(n²)

9
New cards

What is the worst case scenario for the quick sort algorithm?

Correct or reverse order

10
New cards

How do you work out the number of comparisons to sort 'n' items in the worst case scenario for bubble sort and quick sort algorithms?

1/2n(n-1)

11
New cards

What are discrete sets of data?

Integers that can be counted and have a finite number of values

12
New cards

What are continuous sets of data?

Includes complex numbers and varying data values measured over a particular time interval

13
New cards

What is a simple graph?

One in which there are no loops and no multiple edges

14
New cards

What is a disconnected graph?

It falls apart into separate pieces

15
New cards

What is a connected graph?

Every vertex is linked by a single edge or sequence of edges to every other vertex

16
New cards

What is a complete graph?

A simple graph in which every vertex is connected to every other by a single edge

17
New cards

What is a complete graph with n vertices denoted by?

Kn

18
New cards

What is the degree of a vertex?

The number of edges which start and finish at it. A loop counts twice towards the degree as you start and finish at it. Only defined for a graph, not a digraph

19
New cards

What is the handshaking theorem?

If you find the sum of the degrees of the vertices in the graph and compare it with the number of edges, the sum of degrees of the vertices is twice the number of edges

20
New cards

What can the handshaking theorem be written as?

Σdegrees of vertices = 2 x edges

21
New cards

What are directed edges?

Edges that have a direction associated with them

22
New cards

What is a digraph?

A graph that has directed edges

23
New cards

What is a subgraph?

Part of a graph which is itself a graph

24
New cards

What is a planar graph?

One that can be drawn without any edges crossing

<p>One that can be drawn without any edges crossing</p>
25
New cards

What is a bipartite graph?

Where there are two discrete sets of vertices with edges only joining vertices between sets and not within a set

<p>Where there are two discrete sets of vertices with edges only joining vertices between sets and not within a set</p>
26
New cards

What is a complete bipartite graph?

Where each vertex in set A is joined to every vertex in set B by an edge

<p>Where each vertex in set A is joined to every vertex in set B by an edge</p>
27
New cards

How can complete bipartite graph be denoted?

Kr,s (which would have a set of 'r' vertices joined to a set of 's' vertices)

28
New cards

What are isomorphic graphs?

Graphs with the same structure (including number of vertices and edges and degrees of the vertices) but drawn differently

<p>Graphs with the same structure (including number of vertices and edges and degrees of the vertices) but drawn differently</p>
29
New cards

What is a tree?

A connected graph with no cycles

30
New cards

How can you check if a graph is a tree?

The number of edges is always one less than the number of vertices

31
New cards

What is a spanning tree?

A subgraph which includes all the vertices in the original graph and is also a tree

<p>A subgraph which includes all the vertices in the original graph and is also a tree</p>
32
New cards

What is an incidence matrix?

Shows the number of edges from each point on a graph in the form of a matrix

<p>Shows the number of edges from each point on a graph in the form of a matrix</p>
33
New cards

What does it mean if an incidence matrix has symmetry?

There are no directed edges

34
New cards

What is a weight?

The numerical value given to an edge

35
New cards

What is a network?

A graph with weighted edges

36
New cards

What is the Minimum Spanning Tree (MST)?

The set of edges which solves the minimum connector problem by connecting every vertex using the lowest weight. It is a subgraph with the same number of vertices as the original graph but also a tree

37
New cards

What is a greedy algorithm?

One which gives an optimal solution based on only one factor and doesn't consider other relevant factors

38
New cards

What is Kruskal's algorithm?

It builds a MST by listing the weights of the edges in ascending order and using the lowest weights to create a tree

39
New cards

How can you work out the length of the MST using the number of vertices?

For a network with 'n' vertices, the MST will have 'n-1' edges

40
New cards

What is Prim's algorithm?

It builds an MST by adding one vertex at a time

41
New cards

What is Dijkstra's algorithm?

It finds the shortest route through a network by assigning values to the vertices

42
New cards

What is the complexity for Kruskal's, Prim's and Dijkstra's algorithms?

O(n²)

43
New cards

What does the complexity of an algorithm represent?

The worst case scenario

44
New cards

What is complexity of the bubble sort algorithm when the list is already in order?

O(n)

45
New cards

What is the nth term for the total number of comparisons in the worst case scenario for first fit or first fit decreasing bin packing?

1/2n(n - 1)

46
New cards

How to calculate total float?

Late finish time - early start time - activity duration

47
New cards

How to calculate independent float?

Early finish time - late start time - activity duration (if result is -ve, say it = 0)

48
New cards

How to calculate interfering float?

Total float - independent float

49
New cards

What is it called when the flow through an arc is equal to its capacity?

It is saturated