Exam 20: Graph Algorithms

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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:
Verified

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:
Verified

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:
Verified

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)

In a(n) ____ graph, the edges are drawn using arrows.

(Multiple Choice)
4.8/5
(42)

The shortest path algorithm was developed by ____.

(Multiple Choice)
4.9/5
(33)

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)

A binary tree has no cycles.

(True/False)
4.8/5
(45)

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)

An edge incident on a single vertex is called a(n) ____.

(Multiple Choice)
5.0/5
(38)

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)