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.

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

D. Complete binary tree<br />

REPRESENTATION OF BINARY TREE IN MEMORY: tnode<br />

Left<br />

E. Node of a binary tree<br />

data right<br />

The structure of each node of a binary tree contains the data field,a pointer to<br />

the left child and a ponter to the right child.as shown in fig; above.<br />

This structure can be defined as <br />

Struct tnode<br />

{<br />

Struct tnode*left;<br />

Int data;<br />

Prepared By :­<br />

Er. Harvinder Singh<br />

Assist Prof., CSE, H.C.T.M (Kaithal) Page ‐ 186 ‐

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

Saved successfully!

Ooh no, something went wrong!