Which data structure gives efficient search?
A. B-tree B. binary tree C. array D. linked list
Answer Posted / splurgeop
the correct answer is binary tree.........since a binary
tree has the property that that the left subtree will
always be smaller than the root subtree.so our searchinin
will be refined at each step i.e either we have to search
the left subtree or the rioght subtree.....and this
continuess tilll we either find the element or we find get
to the leaf node and dont find the element(element doest
not exist)...
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
Is string part of stl?
How do I convert a stl file?
What is a standard template library (stl)?
What is meant by stl in c++?
Define stl.
Describe the My Computer and My Documents folders; identify the elements that are present in every Window.
If P is the population on the first day of the year, B is the birth rate, and D is the death rate, the estimated population at the end of the year is given by the formula: The population growth rate is given by the formula: B – D Write a program that prompts the user to enter the starting population, birth and death rates, and n, the number of years. The program should then calculate and print the estimated population after n years. Your program must have at least the following functions: 1. growthRate: This function takes its parameters the birth and death rates, and it returns the population growth rate. 2. estimatedPopulation: This function takes its parameters the current population, population growth rate, and n, the number of years. It returns the estimated population after n years Your program should not accept a negative birth rate, negative death rate, or a population less than 2. please answer my question ....
What is stl stack?
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
How stl is different from the c++ standard library?
Name the different types of stl containers.
help me i need a c++ program which takes sequesnce of characters and outputed sequence of their token taypes, work same compiler in lexical analysis phase
Why should a c++ programmer be interested in stl?
What does stl stand for in basketball?
What are the symptoms of stl?