Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

There are 8, 15, 13, 14 nodes were there in 4 different trees. Which of them could have formed a full binary tree?

Answer Posted / rohit sah

15.

In general:
There are 2n-1 nodes in a full binary tree.
By the method of elimination:
Full binary trees contain odd number of nodes. So there cannot be full binary trees with 8 or 14 nodes, so rejected. With 13 nodes you can form a complete binary tree but not a full binary tree. So the correct answer is 15.

Note: Full and Complete binary trees are different. All full binary trees are complete binary trees but not vice versa.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Discuss the difference between a stack and an Array?

921


Why do we use dynamic arrays?

863


What is array sort?

880


How would you reverse characters of an array without using indexing in the array.

901


What is the difference between for and foreach loop?

973


Write the advantage of separate chaining?

928


What type of data structure is used to perform recursion?

913


Questions related to arrays, such as given a 2 integer array, find the common elements.

930


What is the slowest sorting algorithm?

907


Write a Program for Linked list manipulation.

1033


What do you mean by primary clustering?

1009


List the applications of queues?

931


Can you tell me the differences between Array and ArrayList?

1054


What is the difference between null and void pointer in data structures?

1161


What do you mean by disjoint set adt?

979