Exam 12: Graphs
Exam 1: Software Engineering Principles and C++ Classes42 Questions
Exam 2: Object-Oriented Design OOD and C++35 Questions
Exam 3: Pointers and Array-Based Lists45 Questions
Exam 4: Standard Template Library (STL) I47 Questions
Exam 5: Linked Lists44 Questions
Exam 6: Recursion36 Questions
Exam 7: Stacks44 Questions
Exam 8: Queues48 Questions
Exam 9: Searching and Hashing Algorithms49 Questions
Exam 10: Sorting Algorithms47 Questions
Exam 11: Binary Trees and B-Trees47 Questions
Exam 12: Graphs43 Questions
Exam 13: Standard Template Library (STL) II50 Questions
Select questions type
The breadth first traversal traverses the graph from each vertex that is not visited.
Free
(True/False)
4.8/5
(36)
Correct Answer:
True
Let G be an undirected graph. G is called ____ if any two vertices in G are connected.
Free
(Multiple Choice)
4.8/5
(47)
Correct Answer:
C
A circuit in a graph that includes all the edges of the graph is called a(n) ____.
Free
(Multiple Choice)
4.7/5
(51)
Correct Answer:
A
Let G be a directed graph and V(G) = {v1, v2, . . ., vn}, where n >= 0. A(n) ____ of V(G) is a linear ordering vi1, vi2, . . ., vin of the vertices such that, if vij is a predecessor of vik, j does not equal k, 1 <= j <= n, 1 <= k <= n, then vij precedes vik, that is, j < k in this linear ordering.
(Multiple Choice)
4.8/5
(42)
The breadth first traversal algorithm is similar to traversing a binary tree level-by-level.
(True/False)
4.9/5
(35)
Let G be an undirected graph. G is called ____ if there is a path from any vertex to any other vertex.
(Multiple Choice)
4.7/5
(31)
____ are used to model electrical circuits, chemical compounds, highway maps, and so on.
(Multiple Choice)
5.0/5
(44)
A graph G is said to be ____ if either G is a trivial graph or G has an Euler circuit.
(Multiple Choice)
4.7/5
(36)
In the breadth first topological ordering, we first find a vertex that has a predecessor vertex and place it first in the topological ordering.
(True/False)
4.8/5
(41)
The topological sort algorithm can be implemented either using the depth first traversal or the breadth first traversal.
(True/False)
4.8/5
(42)
Let G be a weighted graph, let u and v be two vertices in G, and let P be a path in G from u to v. The weight of the path P is the ____ of all the edges on the path P.
(Multiple Choice)
4.9/5
(32)
A ____ in G is a simple path in which the first and last vertices are the same.
(Multiple Choice)
4.9/5
(37)
There are two well-known algorithms, ____ algorithm and Kruskal's algorithm, for finding a minimum spanning tree of a graph.
(Multiple Choice)
4.8/5
(38)
Let G be a weighted graph, a minimum (minimal) spanning tree of G is a spanning tree with the ____.
(Multiple Choice)
4.9/5
(41)
If the graph represents a highway structure, the weight can represent the distance between two places or the travel time from one place to another.
(True/False)
4.7/5
(38)
Showing 1 - 20 of 43
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)