Академический Документы
Профессиональный Документы
Культура Документы
Chapter 1 - Algorithms
Algorithm Precise set of instructions very clear so that anyone/computer can
follow it.
Flow Chart - type of algorithm. They can be used to design computer programs.
Start/End
Instruction
Decision
Complete bipartite graph- Every value in set X joins every value in set Y.
Isomorphic graph Graphs that show the same information but are drawn
differently.
Critical path analysis concerns organizing projects effectively, so that you can have
the minimum workers and compete projects in the minimum amount of time.
Some activities cannot be started until others finish.
We use precedence tables to show which jobs must be finished before others
completed. E.g. if looking at the project of building a house, we cannot have the
electrician coming in before the foundations are laid!
We use activity networks to represent our precedent tables in a clear manner; they
are easier to understand if the problem is complex. We use the activity on arc
type network here.
The activities are represented by arcs and the completion of those activities
(events) are shown as nodes.
Each arc is labeled with an activity letter.
The beginning and end of an activity are shown at the ends of the arc and an
arrow is used to define the direction.
We use straight lines for arcs.
Nodes are numbered starting from 0 for the first node source node.
Number each node as it is added to the network.
Final node sink node.
We use dummies in activity networks for precedence tables. These are used when
we cannot complete the activity network and show that one activity depends on
two others for example.
Dummies have no time or cost.
There can be at most one activity between any two events. A dummy may be used
here to help satisfy this condition.
Carrying out a forward pass using early and late event times.
Duration of the activity How long each activity takes to complete.
Early event time earliest time of arrival allowing for the activities beforehand to
be completed.
Late event time latest time that event can be left without extending the time of
the whole thing.
Early event times are calculated starting from 0 at the source node and
working towards the sink node. This is a forward pass or forward scan.
Late event times are calculated starting from the sink node and working
backwards towards the source node. This is a backward pass or backward
scan.
Critical activities an activity where any increase in its duration results in an overall increase
in the project completion time.
A path from the source node to the sink node, which follows entirely critical activities, is
called the critical path.
On a critical path, each node has an early event time equal to the late event time.
Total float of an activity is the amount of time that its start time may be delayed by without
affecting the duration of the project.
Total float = latest finish time duration earliest start time
The total float of a critical activity is 0.
We can use cascade (Gannt) charts to show possible start and finish times of activities in a
graphical way.
The number scale used shows elapsed time i.e. the first hour is between 0 and 1, the
second hour is between 1 and 2 and so on (very simple way to catch you out!)
The critical activities always lie along the top the chart shows there is no flexibility
in the timing of the critical activities but that there is a degree of flexibility for noncritical activities.
The total float of each activity is represented by the range of movement of its rectangle
on the chart (shown as a dotted box).
We can construct scheduling diagrams to show how workers can be used to ensure the
project is completed in the minimum time possible.
Each activity is completed by a single worker in the time given as the duration of the
activity.
The lower bound for the number of workers needed to complete a project within its
critical times is given by the smallest integer greater than or equal to:
activity
Sometimes it is better to construct the scheduling diagram straight from the activity network,
rather than the Gannt chart, because it may be necessary to delay some activities further if the
amount of workers available is less than the lower bound needed.
Once a straight line is drawn onto the graph, there are 3 regions: the
line, above the line and below the line.
All points on the line are represented by an equals, above > and
below <
When illustrating the inequality draw a straight line and then use
shading.
o Strict inequalities using < or > use a dotted line to show that
the line itself is not included in the region.
o Inequalities using are represented by a solid line to show
that the line is included in the region.
We shade the part of the reason that we DO NOT WANT i.e. we are
getting rid of it.
We use the ruler method to locate the optimal point in a feasible region.
We draw on the objective line on to the graph and then slide a ruler
so that it is parallel to the objective line.
We can also use the vertex testing method to locate the optimal point.
The above may not always be accurate, so you can also find the
optimal non-integer solution and then test the four vertices around it
(if they lie in the feasible region) to see which gives the optimal
solution.
Chapter 7 Matchings
Arcs may connect node from different sets but never connect nodes in the
same set.
We may need to form matchings; a 1 to 1 pairing of some or all of the
elements in one set, X, with elements of a second set, Y i.e. only 1 node in X
is paired to 1 node in Y.
A matching pairs off the nodes.
If both sets have n nodes, a complete matching is a matching with n arcs.
A maximal matching may need to be found if a complete matching is not
possible.