MWA Flashcards
Define an algorithm
a finite sequence of operations for carrying out a procedure or solving a problem
define heuristic algorithm
a algorithm which will usually find a solution efficiently but has no guarantee it is optimal
Are first fit and first fit decreasing heuristic or not
they are heuristic
what is the worst case complexity of First fit and First fit decreasing
O(n2)
What is the worse case amount of comparisons for First fit and First fit decreasing
1/2 n(n+1)
What is the worse case complexity of the quick sort algorithm
O(n2)
what is a pass
when you have completed an algorithm once
In quick sort what is the pivot
The first number in each sub-list
what is the worse case scenario number of comparisons in a quick sort
1/2 n(n−1)
what is a graph
a set of nodes (or vertices) together with a set of arcs (or edges).
what is a loop
an edge with the same vertex at both ends
what is the order of a node
is the number of edges incident on it.
how else can a graph be represented
by an incidence matrix.
what is a connected graph
one in which every vertex is joined, directly or indirectly, to each of the other vertices.
what is a simple graph
a graph with no loops and no ‘repeated’ edges.