Define a tree
3 years ago
Data Structure and Algorithm
A tree is a collection of nodes. The collection can be empty; otherwise, a tree consists of a distinguished node r, called the root, and zero or more nonempty (sub) trees T1, T2,…,Tk, each of whose roots are connected by a directed edge from r.
Sanisha Maharjan
Jan 23, 2022