10.09.2013 Views

1. Advanced Data Structure using C++

1. Advanced Data Structure using C++

1. Advanced Data Structure using C++

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

c.<br />

LECTURE NOTES OF ADVANCED DATA STRUCTURE (MT-CSE 110)<br />

Strictly binary tree<br />

DEGREE: The number of nodes connected to a particular node is called degree of<br />

that node .for eg;the node conataining data ‘D’ has a degree 3.The degree of a<br />

leaf node is always one<br />

LEVEL: The root node of the tree has level 0.The level of any other child node is<br />

one more than the level of its father.for eg;, in the binary tree as in fig; node ‘E’<br />

is at level 2 and node ‘H’ is at level 3.<br />

DEPTH: The maximum level of any leaf node in the tree is called depth of the<br />

binary tree.for eg; the depth of the tree shown in fig; below<br />

Binary tree<br />

A<br />

Prepared By :­<br />

Er. Harvinder Singh<br />

Assist Prof., CSE, H.C.T.M B (Kaithal) C<br />

Page ‐ 184 ‐<br />

E

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!