Domanda di colloquio di Tudip Technologies

Tell me difference between graph and tree.

Risposta di colloquio

Anonimo

30 set 2020

A graph and a tree are both non linear data structures. A graph is a net of interconnected nodes by edges. A tree is a minimally connected graph, it contains a root node from which goes several branches of other trees. Each node under the root of a tree is the root of a sub-tree.

1