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
(73)
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
(75)
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
(73)
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
(86)

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
(90)

The ____ of sets A and B is the set of all elements that are in A and B.

(Multiple Choice)
4.7/5
(65)

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

(Multiple Choice)
4.8/5
(95)

The shortest path algorithm was developed by ____.

(Multiple Choice)
4.9/5
(81)

The shortest path algorithm is also called the ____ algorithm.

(Multiple Choice)
4.7/5
(76)

A graph is called a(n) ____ graph if it has no loops and no parallel edges.

(Multiple Choice)
4.9/5
(75)

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
(84)

In a directed graph, the pairs (u,v) and (v,u) represent the same edge.

(True/False)
4.9/5
(76)

____________________ algorithm builds the tree iteratively by adding edges until a minimal spanning tree is obtained.

(Short Answer)
4.8/5
(80)

A binary tree has no cycles.

(True/False)
4.8/5
(92)

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
(73)

It is possible to design Prim's algorithm so that it is of the order O(n2).

(True/False)
4.8/5
(83)

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

(Multiple Choice)
5.0/5
(83)

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.9/5
(72)

The depth first traversal is similar to the postorder traversal of a binary tree.

(True/False)
4.9/5
(79)

Y is a(n) ____ of X if every element of Y is also an element of X.

(Multiple Choice)
4.8/5
(71)
Showing 1 - 20 of 48
close modal

Filters

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