Question
a.
trees are not connected
b.
graphs may have loops
c.
trees have root
d.
None of these
Posted under Data Structures and Algorithms
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Graph traversal is different from a tree traversal, because:
pankaj : June 26, 2023
unlike trees, graphs may contain cycles, so we may come to the same node again. To avoid processing a node more than once, we divide the vertices into two categories:
Visited and
Not visited.
Similar Questions
Discover Related MCQs
Q. The number of edges in a simple, n-vertex, complete graph is
View solution
Q. Graphs are represented using ............
View solution
Q. The spanning tree of connected graph with 10 vertices contains ..............
View solution
Q. If locality is a concern, you can use ................ to traverse the graph.
View solution
Q. Which of the following algorithms solves the all-pair shortest path problem?
View solution
Q. The minimum number of colors needed to color a graph having n (>3) vertices and 2 edges is
View solution
Q. Which of the following is useful in traversing a given graph by breadth first search?
View solution
Q. The minimum number of edges in a connected cyclic graph on n vertices is
View solution
Q. The number of edges in a regular graph of degree d and n vertices is
View solution
Q. In the given graph identify the cut vertices.
View solution
Q. For the given graph(G), which of the following statements is true?
View solution
Q. The given Graph is regular.
View solution
Q. In the following DAG find out the number of required Stacks in order to represent it in a Graph Structured Stack.
View solution
Q. Which of the following graphs are isomorphic to each other?
View solution
Q. In the given graph which edge should be removed to make it a Bipartite Graph?
View solution
Q. What would be the DFS traversal of the given Graph?
View solution
Q. What is the number of words that can be formed from the given Directed Acyclic Word Graph?
View solution
Q. Determine the longest string which is described by the given Directed Acyclic Word Graph.
View solution
Q. Which of the following statements for a simple graph is correct?
View solution
Q. What is the number of edges present in a complete graph having n vertices?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Data Structures and Algorithms? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!