MathJax


Monday, April 12, 2021

2021-021

In a graph, a "tree edge" is an edge that is present in the tree obtained after performing DFS on the graph. Suppose that \(k\) tree edges resulted from a depth-first traversal of an \(n\)-vertex, undirected graph. The number of the connected components in the graph can be calculated as:

  1. \( k-1 \)
  2. \( k \)
  3. \( n-k \)
  4. \( n-k+1 \)
  5. None of the above

Original idea by: Soroor Salavati

No comments:

Post a Comment

2023-228

A company launched a new gadget C to be produced globally for North American and South American markets. The company uses just-in-time as ...