Sunteți pe pagina 1din 10

3/31/13

Types of Binary Tree

Upload Log In Sign Up


Search books, presentations, business, academics

Explore Documents School WorkHealth & MedicineBrochures/CatalogsMagazines/NewspapersHow-To Guides/ManualsRecipes/MenusBooks - FictionBooks - Non-fictionGovernment Docs+ all categories RecentFeatured People AuthorsStudentsResearchersPublishersGovernment & NonprofitsBusinessesMusiciansArtists & DesignersTeachers+ all categories Most FollowedPopular

Language: English Download 3 Go BackComment Link Embed Save for later


1

of 6 Readcast
Like 15 Tw eet

Types of Binary Tree


A tree is a binary tree if and only if :Search This Document

Search It has a root node , which may not have any child nodes (0 child Search History: nodes, NULL tree) Searching... Root node may have 1 or 2 child nodes . Each such node forms a Result 00 of 00 00 results for result for binary tree itself

p.

Number of child nodes can be 0 ,1 ,2.......not more than 2 There is a unique path from the root to every other node

E.g. :-

A binary tree is a strictly binary tree if and only if :

Each node has exactly two child nodes or no nodes

E.g.:-

A binary tree is a full binary tree if and only if :

Each non leaf node has exactly two child nodes All leaf nodes are at the same level

www.scribd.com/doc/17116770/Types-of-Binary-Tree

1/10

3/31/13

Types of Binary Tree

suvayanbala@gmail.com 9231937821

Page |1

E.g.:-

A binary tree is a perfect binary tree if and only if :

is a full binary tree All leaf nodes are at the same level

E.g.:-

A binary tree is a complete binary tree (of height h , we take root node as 0 ) if and only if :

Level 0 to h-1 represent a full binary tree of height h-1 One or more nodes in level h-1 may have 0, or 1 child nodes If j,k are nodes in level h-1, then j has more child nodes than k if and only if j is to the left of k , i.e. the last level (h) can be missing

leaf nodes, however the ones present must be shifted to the left

suvayanbala@gmail.com 9231937821

Page |2

www.scribd.com/doc/17116770/Types-of-Binary-Tree

2/10

3/31/13

Types of Binary Tree

E.g.:-

A complete binary tree filled at each depth from left to right

suvayanbala@gmail.com 9231937821

Page |3

www.scribd.com/doc/17116770/Types-of-Binary-Tree

3/10

3/31/13

Types of Binary Tree

www.scribd.com/doc/17116770/Types-of-Binary-Tree

4/10

3/31/13

Types of Binary Tree

Types of Binary Tree


a complete guide for understanding the various types of Binary Tree.........by following this tutorial anyone new to data structure, can identify correctly the type of the binary tree , at the same time would be able to draw it correctly..it would very helpful for the engineering students for exam purpose Download or Print Add To Collection 20.5K Reads 87 Readcasts 13 Embed Views

Published by Suvayan Follow


Search This Document

Search TIP Press Ctrl-FF to search anywhere in the document.

www.scribd.com/doc/17116770/Types-of-Binary-Tree

5/10

3/31/13

Types of Binary Tree

Info and Rating


Category: Research > Math & Engineering Rating: Upload Date: 07/06/2009 Copyright: Attribution Non-commercial Tutorial engineering understanding students Tags: exam draw Identify Data Structure (more tags) Free download as PDF File (.pdf), Text File (.txt) or read online for free. Flag document for inapproriate content

Download and print this document


Choose a format to download in

.PDF

.TXT Download

www.scribd.com/doc/17116770/Types-of-Binary-Tree

6/10

3/31/13

Types of Binary Tree

Recommended

56 p. Tree1 kapanasn 6821 Reads

16 p. Comparison of All Sorting Algorithms gopinreddy 46492 Reads

www.scribd.com/doc/17116770/Types-of-Binary-Tree

7/10

3/31/13

Types of Binary Tree

6 p. C program for Binary Search Tree Saiyasodharan 95795 Reads Next

More From This User

5 p. a complete guide for building a AVL Tree Suvayan 15688 Reads

4 p. Recursion-a complete guide for understanding the complicated recurs... Suvayan 514 Reads

Featured

370 p.
www.scribd.com/doc/17116770/Types-of-Binary-Tree 8/10

3/31/13

Types of Binary Tree

Hello Wolves, I'm Home Random House Publishing Group $25.00

19 p. Paris: The Novel Doubleday

20 p. Dessert as Art TheRecipeClub Next Comments

Post comment Sneha Dutta11 months ago 00 good one.. Sneha Dutta11 months ago 00 good one.. Sagar Ujalambkar5 months ago 00 nice but needed the linked list usage for this

About About Scribd Blog Join our team! Contact Us Premium Premium Reader Scribd Store Advertise with us Get started AdChoices Support Help FAQ Press
www.scribd.com/doc/17116770/Types-of-Binary-Tree 9/10

3/31/13

Types of Binary Tree

Partners Developers / API Legal Terms Privacy Copyright Copyright 2013 Scribd Inc. Language: English

www.scribd.com/doc/17116770/Types-of-Binary-Tree

10/10

S-ar putea să vă placă și