Download Trees full notes data structures and more Study notes Data Structures and Algorithms in PDF only on Docsity!
Siddhaarth - 4-S Trees A tree ig a non-linear data structure that data in a hiecarchicag manner. : Defined a6 a Collection of objects /entities falled modes that Link ‘together > nesemble hierarchy * ft iS a non- linear date structure ince iE does nt store data sequentially . ! rook . ancestor child Le 4 J\ 2] OQ. O Or, descendant - UH Aibling longesE “Height of node x Recursive data path b/w Hook oN” Atructure leaf node. { Properties of Trees Depth of node Sx a nd- of edges. nefers to distance b/w if there are ‘n? node 1 to node x nodes then wei have ‘n-4’ edges