Appearance
Computational Mathematics - Practice Test 2
This test covers Modules 3-4.
Questions
- State the Handshaking Lemma.
- Distinguish a walk, trail, and path.
- What condition gives an Eulerian circuit?
- State three properties of a tree.
- How does Kruskal's algorithm choose edges?
- How does Prim's algorithm choose edges?
- When is matrix multiplication defined?
- Is matrix multiplication commutative? Explain.
- State the transpose product rule.
- Find the determinant of
[[2, 1], [3, 4]].
Answer Key
- The sum of all vertex degrees equals
2|E|. - A walk may repeat; a trail does not repeat edges; a path does not repeat vertices.
- The graph must be connected and every vertex must have even degree.
- Connected, acyclic, unique path between every two vertices, and
n - 1edges fornvertices. - Sort edges by increasing weight and accept an edge if it does not create a cycle.
- Start at a vertex and repeatedly add the cheapest edge connecting the current tree to a new vertex.
- When the number of columns of the first matrix equals the number of rows of the second.
- No. In general
ABis not equal toBA. (AB)^T = B^T A^T.2*4 - 1*3 = 5.