0% found this document useful (0 votes)
7 views

Unit-7 Tree3

A tree is a non-linear non-primitive data structure in which the data items are arranged or stored in sorted sequence.

Uploaded by

akyadav123
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Unit-7 Tree3

A tree is a non-linear non-primitive data structure in which the data items are arranged or stored in sorted sequence.

Uploaded by

akyadav123
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Prepared by Narayan Dhamala 1

Prepared by Narayan Dhamala 2


Prepared by Narayan Dhamala 3
Prepared by Narayan Dhamala 4
Prepared by Narayan Dhamala 5
Prepared by Narayan Dhamala 6
Prepared by Narayan Dhamala 7
Prepared by Narayan Dhamala 8
Prepared by Narayan Dhamala 9
Prepared by Narayan Dhamala 10
Construct binary tree from inorder and
postorder sequences

1) Construct binary tree from following


sequence
Inorder: 20,30,35,40,45,50,55,60,70
Postorder: 20,35,30,45,40,55,70,60,50
2) Constrcut binary tree from the following
sequence
Inorder: 2,6,8,10,11,12,15,20,22,27,30
Postorder: 6,2,10,12,11,8,22,30,27,20,15

Prepared by : Narayan Dhamala 11

You might also like