Exam 20: Graph Algorithms
Exam 1: An Overview of Computers and Programming Languages40 Questions
Exam 2: Basic Elements of C++50 Questions
Exam 3: Inputoutput40 Questions
Exam 4: Control Structures I Selection40 Questions
Exam 5: Control Structures Ii Repetition40 Questions
Exam 6: User-Defined Function41 Questions
Exam 7: Namespaces, the Class String, and User-Defined Simple Data Types40 Questions
Exam 8: Arrays40 Questions
Exam 9: Records Structs40 Questions
Exam 10: Classes and Data Abstraction43 Questions
Exam 11: Inheritance and Composition41 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes44 Questions
Exam 13: Operator Overloading and Templates41 Questions
Exam 14: Exception Handling43 Questions
Exam 15: Recursion43 Questions
Exam 16: Linked Lists40 Questions
Exam 17: Stacks and Queue43 Questions
Exam 18: Searching and Sorting Algorithms40 Questions
Exam 19: Binary Trees43 Questions
Exam 20: Graph Algorithms48 Questions
Exam 21: Standard Template Library41 Questions
Select questions type
In Prim's algorithm for the minimal spanning tree, we start at a designated vertex, which we call the ____ vertex.
Free
(Multiple Choice)
4.9/5
(32)
Correct Answer:
B
The ____________________ traversal of a graph is similar to traversing a binary tree level by level.
Free
(Short Answer)
4.9/5
(35)
Correct Answer:
breadth first
breadth-first
A(n) ____ tree T is a simple graph such that if u and v are two vertices in T, a unique path exists from u to v.
Free
(Multiple Choice)
4.9/5
(28)
Correct Answer:
B
Let G be an undirected graph.Let u and v be two vertices in G.Then u and v are called ____ if there is an edge from one to the other.
(Multiple Choice)
4.9/5
(45)
Two well-known algorithms, Prim's algorithm and ____'s algorithm, can be used to find a minimal spanning tree of a graph.
(Multiple Choice)
4.8/5
(40)
The ____ of sets A and B is the set of all elements that are in A and B.
(Multiple Choice)
4.7/5
(27)
The shortest path algorithm is also called the ____ algorithm.
(Multiple Choice)
4.7/5
(38)
A graph is called a(n) ____ graph if it has no loops and no parallel edges.
(Multiple Choice)
4.9/5
(37)
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 sum of the weights of all the ____________________ on the path P.
(Short Answer)
4.9/5
(37)
In a directed graph, the pairs (u,v) and (v,u) represent the same edge.
(True/False)
4.9/5
(37)
____________________ algorithm builds the tree iteratively by adding edges until a minimal spanning tree is obtained.
(Short Answer)
4.7/5
(35)
In a(n) ____________________ graph, the tail of a pictorial directed edge is the origin, and the head is the destination.
(Short Answer)
4.8/5
(36)
It is possible to design Prim's algorithm so that it is of the order O(n2).
(True/False)
4.8/5
(41)
A tree T is called a(n) ____ tree of graph G if T is a subgraph of G such that V(T) = V(G); that is, if all vertices of G are in T.
(Multiple Choice)
4.8/5
(34)
The depth first traversal is similar to the postorder traversal of a binary tree.
(True/False)
4.9/5
(37)
Y is a(n) ____ of X if every element of Y is also an element of X.
(Multiple Choice)
4.8/5
(29)
Showing 1 - 20 of 48
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)