Exam 5: Methods

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

To add a new node, you need to start a process by first placing it as _______ and move it up to maintain the heap property.

Free
(Multiple Choice)
4.9/5
(40)
Correct Answer:
Verified

A

A ___________ of a graph is a subgraph that is a tree and connects all vertices in the graph.

Free
(Multiple Choice)
4.9/5
(41)
Correct Answer:
Verified

A

Find all shortest paths starting from vertex A in the following graph.

Free
(Short Answer)
4.7/5
(32)
Correct Answer:
Verified

The ________ is to visit the left subtree of the current node first, then the current node itself, and finally the right subtree of the current node.

(Multiple Choice)
5.0/5
(35)

Show the inorder, preorder, and postorder of the following BST. Show the inorder, preorder, and postorder of the following BST.

(Short Answer)
4.9/5
(33)

If two vertices are connected by two or more edges, these edges are called ______.

(Multiple Choice)
4.7/5
(32)

The time complexity of the DFS algorithm is The time complexity of the DFS algorithm is

(Multiple Choice)
4.8/5
(47)

Draw a DFS tree from the following graph starting from vertex E.

(Essay)
4.9/5
(33)

Show the BST after inserting 45, 43, 100, 34, 23, and 3 into an empty BST.

(Short Answer)
4.9/5
(34)

Show the BST after deleting 60 from the following BST.

(Short Answer)
4.7/5
(40)

The time complexity for finding an element in a binary search tree is _________.

(Multiple Choice)
4.9/5
(36)

Draw a BFS tree from the following graph starting from vertex E.

(Short Answer)
4.9/5
(32)

A _________ is the one in which every two pairs of vertices are connected.

(Multiple Choice)
4.8/5
(42)

Find a MST in the following graph.

(Short Answer)
4.8/5
(44)

A graph may have several minimum spanning tree.

(Multiple Choice)
4.8/5
(25)

A ____ is an edge that links a vertex to itself.

(Multiple Choice)
4.8/5
(37)

Show the BST after deleting 15 from the following BST.

(Short Answer)
4.8/5
(39)
close modal

Filters

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