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
Q

Directed Edges (C2)

A

Edges which have a specific direction associated.

26
Q

Directed Graph (C2)

A

(disgraph)

Graph with directed edges.

27
Q

Undirected Graph (C2)

A

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
Q

Tree (C2)

A

A connected graph with no cycles.

29
Q

Spanning Tree (C2)

A

A subgraph which includes all vertices of the original graph and is a tree.

30
Q

Complete Graph (C2)

A

A graph in which every vertex is directly connected by a single edge to each of the other vertices.

31
Q

Isomorphic Graphs (C2)

A

Graphs which show the same information but are drawn differently.

32
Q

Adjacency Matrix (C2)

A

Each entry describes the number of arcs joining the corresponding vertices.
(Symmetrical two-way table)

33
Q

Distance Matrix (C2)

A

The matrix associated with a weighted graph and so the entries represent the weight of each arc, not the no. of arcs.

34
Q

Planarity Graph (C2)

A

A graph that can be drawn in a plane such that, when drawn, no two edges meet except at a vertex.

35
Q

Minimum Spanning Tree (C3)

A

A spanning tree such that the total length of its arcs is as small as possible.

36
Q

Eulerian Graph (C4)

A

Network containing a trail including every edge that starts and ends at the same vertex. The trail is called a Eulerian Circuit.

37
Q

Semi-Eulerian Graph (C4)

A

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
Q

Tour (C5)

A

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
Q

Table of least distances (C5)

A

Distance matrix which shows the shortest path between any 2 points in a network.
(two-way table)

40
Q

Residual Minimum Spanning Tree (C5)

A

MST for the resulting network after removing a vertex.

41
Q

Decision Variables (C6)

A

Numbers of each of the things that can be varied. (e.g. 12x)

42
Q

Objective (C6)

A

Aim of the linear programming problem.

43
Q

Constraints (C6)

A

Features of a problem that prevent infinite numbers of each of the variables - these form inequalities.

44
Q

Feasible Solution (C6)

A

Values for decision variables that satisfy the constraints.

45
Q

Feasible Region (C6)

A

Region which contains all feasible solutions.

46
Q

Optimal solution (C6)

A

Feasible solution which meets the objective. (May be >1 OS)

47
Q

Slack variables (C7)

A

Represents the difference between the actual quantity and the maximum possible value.

→ Takes up ‘spare’ in function

→ Used to turn ≤ inequalities into equations

48
Q

Artificial Variable (C7)

A

Used to ensure each constraint with a surplus variable contains a basic variable.

[Type of Surplus variable]

49
Q

Surplus Variable (C7)

A

→ Take up ‘excess’ in function

→ Used to turn ≥ inequalities
into equations

50
Q

Precedence/Dependence Table (C8)

A

Shows which activities must be completed before others are started.

51
Q

‘Activity On Arc’ Network (C8)

A

Arc represent activities & nodes represent events (completion of activities)

52
Q

Types of Node (C8)

A

Source = First
Sink = Final

53
Q

Dummy Activity (C8)

A

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
Q

Event Times (C8)

A

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
Q

Critical Activity (C8)

A

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
Q

Critical Path (C8)

A

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
Q

Total Float (C8)

A

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