Representation of
Binary Tree
Binary tree
can be stored in memories in three ways
- Sequential Storage representation
- Linked
Storage representation
- Thread
storeage representation
1. Sequential
Storage Representation
Here we
represent thre trees using arrays. Consider the binary tree shown below:
The Sequential Storage representation of above tree is
The Storage leads to a large amount of memory wastage. Sequential representation is good only for
both complete binary tree and full binary trees. Consider a full binary tree or complete
binary tree.
Sequential
Representation
hey u moron......where is linked list representation of binary tree....???
ReplyDeleteif u don't know ABCD of representation then why r u here to show us ur knowledge........????
Go through www.kurvaramudu.blogspot.in regarding query on trees. And think on comments put on me.
Delete