Further Decision - Key Terms Flashcards

1
Q

Algorithm (C1)

A

Finite sequence of step-by-step instructions carried out to solve a problem.

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

Trace Table (C1)

A

Used to record values of each variable as the algorithm

Instruction| n | A | B | C | Print
Step

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

Flow Chart Symbols (C1)

A

Stretched Circle - Start/End
Rectangle - Instruction
Rhombus - Decision (question)

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

Full-bin packing (C1)

A

Select ANY items to fill bins as much as possible.

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

Lower bound (C1)

A

Sum of values / bin size

Allows you to determine what the minimum no. of bins needed and thus whether your answer is optimal.

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

Optimal Solution (C1)

A

Solution that cannot be improved upon.

(e.g. Bin Packing = Smallest no. of bins)

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

Order (C1)

A

‘A function of its size.’ If order = f(n), then increasing size of the problem from n to m will increase the run time by a factor of f(m)/f(n).

Identifies how changes in the size of a problem affects the approximate run time of the algorithm.

Linear = n (e.g. Bubble sort
Quadratic = n^2 = Quadratic)
Cubic = n^3

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

Order (continued) (C1)

A

Increasing size of problem by factor k means:

  • Linear alg. = k times longer
  • Quadratic alg. = k^2 times longer
  • Cubic alg. = k^3 times longer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Graph (C2)

A

Vertices/nodes connected by edges/arcs.

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

Weighted Graph (C2)

A

(Network)

Each edge has a ‘weight’ - number associated with it.

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

Vertex (C2)

A

(a.k.a node)

A point on a graph connected by edges.

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

Vertex/Edge Set (C2)

A

List of vertices/edges.

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

Edge (C2)

A

(a.k.a arc)

A line segment connecting vertices.

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

Subgraph (C2)

A

A graph of which the vertices belong to another bigger graph.

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

Degree (C2)

A

(Valency/Order)

The number of edges connecting to a vertex.

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

Walk (C2)

A

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

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

Path (C2)

A

A WALK in which no vertex is visited more than once.

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

Trail (C2)

A

A WALK in which no edge is visited more than once.

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

Cycle (C2)

A

A PATH in which the end vertex is the same as the start vertex.

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

Hamiltonian Cycle (C2)

A

A CYCLE including every vertex within it.

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

Eulerian Circuit (C2)

A

A TRAIL which traverses every arc and starts and ends at the same vertex.

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

Connected Graph (C2)

A

All vertices are connected to at least one other vertex.

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

Loop (C2)

A

An edge/arc that starts and finishes at the same vertex.

24
Q

Simple Graph (C2)

A

A GRAPH with no loops & at most one edge is connecting to any pair of vertices.

25
Directed Edges (C2)
Edges which have a specific direction associated.
26
Directed Graph (C2)
(disgraph) Graph with directed edges.
27
Undirected Graph (C2)
Edges have no direction. Sum of degrees of vertices = 2 x no. of edges Thus the number of odd vertices must be even or 0. (a.k.a Euler's handshaking lemma)
28
Tree (C2)
A connected graph with no cycles.
29
Spanning Tree (C2)
A subgraph which includes all vertices of the original graph and is a tree.
30
Complete Graph (C2)
A graph in which every vertex is directly connected by a single edge to each of the other vertices.
31
Isomorphic Graphs (C2)
Graphs which show the same information but are drawn differently.
32
Adjacency Matrix (C2)
Each entry describes the number of arcs joining the corresponding vertices. (Symmetrical two-way table)
33
Distance Matrix (C2)
The matrix associated with a weighted graph and so the entries represent the weight of each arc, not the no. of arcs.
34
Planarity Graph (C2)
A graph that can be drawn in a plane such that, when drawn, no two edges meet except at a vertex.
35
Minimum Spanning Tree (C3)
A spanning tree such that the total length of its arcs is as small as possible.
36
Eulerian Graph (C4)
Network containing a trail including every edge that starts and ends at the same vertex. The trail is called a Eulerian Circuit.
37
Semi-Eulerian Graph (C4)
Network containing a trail including every edge but starts and finishes at different vertices. [Any connected graph with exactly 2 odd vertices is Semi-Eulerian]
38
Tour (C5)
Walk which visits every vertex and returns to its starting vertex. (May visit vertices more than once, thus is different to a Hamiltonian cycle)
39
Table of least distances (C5)
Distance matrix which shows the shortest path between any 2 points in a network. (two-way table)
40
Residual Minimum Spanning Tree (C5)
MST for the resulting network after removing a vertex.
41
Decision Variables (C6)
Numbers of each of the things that can be varied. (e.g. 12x)
42
Objective (C6)
Aim of the linear programming problem.
43
Constraints (C6)
Features of a problem that prevent infinite numbers of each of the variables - these form inequalities.
44
Feasible Solution (C6)
Values for decision variables that satisfy the constraints.
45
Feasible Region (C6)
Region which contains all feasible solutions.
46
Optimal solution (C6)
Feasible solution which meets the objective. (May be >1 OS)
47
Slack variables (C7)
Represents the difference between the actual quantity and the maximum possible value. → Takes up 'spare' in function → Used to turn ≤ inequalities into equations
48
Artificial Variable (C7)
Used to ensure each constraint with a surplus variable contains a basic variable. [Type of Surplus variable]
49
Surplus Variable (C7)
→ Take up 'excess' in function → Used to turn ≥ inequalities into equations
50
Precedence/Dependence Table (C8)
Shows which activities must be completed before others are started.
51
'Activity On Arc' Network (C8)
Arc represent activities & nodes represent events (completion of activities)
52
Types of Node (C8)
Source = First Sink = Final
53
Dummy Activity (C8)
Has no time or cost. Aims to show dependencies between activities to avoid 2 arcs starting and ending at the same node. ARC GOES FIRST, THEN DUMMY.
54
Event Times (C8)
Early = Earliest time of arrival at event, allowing for completion of all preceding activities. Late = Latest time event can be left without extending time needed for project.
55
Critical Activity (C8)
Any increase in its duration results in a corresponding increase in duration of entire project. Not every activity connect 2 critical events is a critical activity.
56
Critical Path (C8)
Longest path from source node to sink node contained in network which entirely follows critical activities. Event times: Early = Late THERE CAN BE > 1 CP.
57
Total Float (C8)
Amount of time that an activity's start may be delayed without affecting the duration of the project. TF = Latest finish time - duration - earliest start time TF of a critical activity = 0