Modelling With Algorithms Flashcards
What is an adjacency (incidence) matrix?
A matrix with each row and column representing a vertex, and the elements represent the number of edges (or weight) from one vertex to the other.
What is an admissable set?
The admissible set of an inequality is the set of points where the inequality is satisfied.
What is an allocation problem?
A matching problem in which each edge is weighted (perhaps representing cost), and the problem is to find a matching which minimises the total weight of the edges used. An allocation problem can be formulated as a linear programming problem.
What is the augmented form of a linear programming problem?
When the inequality constraints are written as equalities by introducing slack variables.
What is a bipartite graph?
A graph with two sets of nodes. Each edge connects both sets.
What is a complete graph?
A graph where every node is connected directly to every other node.
What is a connected graph?
A graph in which a path exists between each pair of nodes.
What is a critical activity?
An activity with no float. Any delay to the critical activity will delay the project as a whole. A critical activity must lie on a critical path.
What is a cycle?
A cycle is a close path (the last node is the first node).
How do you do Dijkstra’s algorithm?
Label the starting node S with a permanent label of 0.
For all nodes that can be directly reached from S, assign temporary labels equal to their direct distance from S.
Select the node with the smallest temporary label and make its label permanent.
Put a temporary label on each node that can be reached directly from the node which has just received a permanent label. The temporary label is the sum of the permanent label and the direct distance from it. If there is an existing temporary label at a node, it should be replaced only if the new sum is smaller.
Select the minimum temporary label and make it permanent.
Continue this procedure until the destination node has a permanent label.
To find the shortest path, trace back from the destination, including any arc whose length is equal to the difference between the permanent labels at either end of the arc.
What is the first-fit algorithm?
A bin-packing algorithm:
Taking the boxes in the order listed, place the next box to be packed in the first available slot that can take the box.
What is the first-fit decreasing algorithm?
A bin-packing algorithm:
Reorder the boxes in order of decreasing size
Apply the first-fit algorithm to this reordered list.
What is the float?
The float on an activity is the amount of time by which it may be delayed without affecting the overall time for completion of the project.
What is a heuristic algorithm?
A heuristic, or heuristic algorithm, is a method which will usually find a good, if not the best, solution to a problem. An efficient heuristic algorithm will consistently find a good solution to the problem it addresses.
What is the independent float?
This is spare time associated with a particular activity. An activity can be delayed by an amount up to its independent float without delaying the start of any other activity, or the overall completion time of the project.