ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
   
 
Categories  >>  Software  >>  Operating Systems  >>  Data Structures
 
 


 

 
 Windows interview questions  Windows Interview Questions
 Linux interview questions  Linux Interview Questions
 Unix interview questions  Unix Interview Questions
 Solaris interview questions  Solaris Interview Questions
 RTOS interview questions  RTOS Interview Questions
 Bulnex interview questions  Bulnex Interview Questions
 Operating Systems General Concepts interview questions  Operating Systems General Concepts Interview Questions
 Data Structures interview questions  Data Structures Interview Questions
 Operating Systems AllOther interview questions  Operating Systems AllOther Interview Questions
Question
what is atmost complete binary tree?
 Question Submitted By :: Angel.goyal3
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is atmost complete binary tree?
Answer
# 1
An almost complete binary tree is a tree in which each node
that has a right child also has a left child. Having a left
child does not require a node to have a right child. Stated
alternately, an almost complete binary tree is a tree where
for a right child, there is always a left child, but for a
left child there may not be a right child.
The number of nodes in a binary tree can be found using this
formula: n = 2^h Where n is the amount of nodes in the tree,
and h is the height of the tree.
 
Is This Answer Correct ?    59 Yes 8 No
Iti
 
  Re: what is atmost complete binary tree?
Answer
# 2
complete binary tree is tree in which all the nodes except
leaf nodes has two childes and all the leaf nodes are at
the same height.atmost complete binary tree is tree in
which all nodes has atmost two childs.
 
Is This Answer Correct ?    28 Yes 15 No
Lomesh Ahire
 
 
 
  Re: what is atmost complete binary tree?
Answer
# 3
I wold like to make 1 small change in answer1.

No. of nodes varies from 2^(h-1)+1 to 2^(h) -1
 
Is This Answer Correct ?    8 Yes 3 No
Aniket
 
  Re: what is atmost complete binary tree?
Answer
# 4
a tree is sed to be a cbt if each node except leaf node has
two childrens
 
Is This Answer Correct ?    3 Yes 8 No
Parveen
 
  Re: what is atmost complete binary tree?
Answer
# 5
if we are having an ordinal binary tree..
then No. Of nodes varies from 2^(h-1)-1 to 2^(h)-1

for example if h=3
then No. of node varies from 2^(3-1)-1 = 3 to 2^3-1 = 7

but for complete binary tree

No. Of node will be 2^h-1 only....

don't mind but Iti and Aniket your ans. is not actually correct...
 
Is This Answer Correct ?    2 Yes 0 No
Jonu
 
  Re: what is atmost complete binary tree?
Answer
# 6
all the leaf should be in last or second last level.no other level is allowed 
Is This Answer Correct ?    0 Yes 0 No
Shikha
 

 
 
 
Other Data Structures Interview Questions
 
  Question Asked @ Answers
 
No. of possible ordered trees with n nodes ? Please give formula (if any).  1
What do you mean by: Syntax Error, Logical Error, Runtime Error? Microsoft7
The element being searched for is not found in an array of 100 elements. What is the average number of comparisons needed in a sequential search to determine that the element is not there, if the elements are completely unordered? Morgan-Stanley11
what is a complexity of linear search,binery search? ABB7
how a polynomial such as 6x^6+4x^3-2x+10 can be represnted by linked list?write an algorithm that reads such an polynomial  1
How many different binary trees and binary search trees can be made from three nodes that contain the key values 1, 2 & 3? iGate28
What is B+ tree? BMC6
Explain about the types of linked lists  5
I am given a sequential algorithm that does a routine search on an unordered list. N = 20. The probability that the value x does NOT appear in the list is exactly 60%, and the probability that x DOES appear is 40%. The 3 questions that I could not get were: A) What is the avg number of element comparisons performed when n = 20 and x does NOT appear in the List. (my answer was 20, is this correct?) B) What is the avg number of element comparisons peformed when n = 20 and x DOES appear in the list? C) What is the avg number of element comparisons performed when n = 20. This should be a single number answer they said.  3
What is binary tree? BMC13
why do tree always takes o(log n) time? TCS1
What is the maximum total number of nodes in a tree that has N levels? Note that the root is level (zero) Sasken18
 
For more Data Structures Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com