Skip to content
Algorithms

Graph Test

Test your graph Algorithms and Data structure knowledge

  1. 1Consider a forest with five trees and each tree contains at least two nodes. What is the minimum number of undirected edges needed to make the forest one connected tree?
  2. 2Assume you have a directed connected graph of 10 nodes and 30 edges (no loops). If you present the graph as an adjacency list, then the total number of chained nodes is:
  3. 3The breadth-first search algorithm uses:
  4. 4Picture Question:Figure for question 4
Answered 0 of 4