MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A tree structure is also
A
an undirected graph with no cycles
B
a directed graph with no cycle
C
an undirected graph with cycles
D
a directed graph with cycle
Explanation: 

Detailed explanation-1: -A tree is an undirected graph G that satisfies any of the following equivalent conditions: G is connected and acyclic (contains no cycles). G is acyclic, and a simple cycle is formed if any edge is added to G. G is connected, but would become disconnected if any single edge is removed from G.

Detailed explanation-2: -A tree is a connected graph with no cycles. A forest is a graph with each connected component a tree. A leaf in a tree is any vertex of degree 1.

Detailed explanation-3: -A connected acyclic graph is called a tree. In other words, a connected graph with no cycles is called a tree. The edges of a tree are known as branches.

Detailed explanation-4: -Definition: A tree is a connected graph without any cycles, or a tree is a connected acyclic graph. The edges of a tree are called branches. It follows immediately from the definition that a tree has to be a simple graph (because self-loops and parallel edges both form cycles).

Detailed explanation-5: -A graph without cycles is called an acyclic graph.

There is 1 question to complete.