|
INTERVIEW QUESTIONS
PROGRAMMING LANGUAGES
C++
DETAILS
Question: What are the advantages and disadvantages of B-star trees over Binary trees?
Answer:
B-star trees have better data structure and are faster in search than Binary trees, but it’s harder to write codes for B-start trees.
The major difference between B-tree and binary tres is that B-tree is a external data structure and binary tree is a main memory data structure. The computational complexity of binary tree is counted by the number of comparison operations at each node, while the computational complexity of B-tree is determined by the disk I/O, that is, the number of node that will be loaded from disk to main memory. The comparision of the different values in one node is not counted.
|
|
|
Category |
C++ Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 6891 users |
Added on |
7/16/2015 |
Views |
67428 |
Rate it! |
|
|
Question:
What are the advantages and disadvantages of B-star trees over Binary trees?
Answer:
B-star trees have better data structure and are faster in search than Binary trees, but it’s harder to write codes for B-start trees.
The major difference between B-tree and binary tres is that B-tree is a external data structure and binary tree is a main memory data structure. The computational complexity of binary tree is counted by the number of comparison operations at each node, while the computational complexity of B-tree is determined by the disk I/O, that is, the number of node that will be loaded from disk to main memory. The comparision of the different values in one node is not counted. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
Write a fucntion that will reverse a string.
|
View Answer
|
|
What is the difference between Stack and Queue?
|
View Answer
|
|
What are the differences between new and malloc?
|
View Answer
|
|
What is your reaction to this line of code?
|
View Answer
|
|
When should you use multiple inheritance?
|
View Answer
|
|
What are the debugging methods you use when came across a problem?
|
View Answer
|
|
How the compilers arranges the various sections in the executable image?
|
View Answer
|
|
What are the differences between a C++ struct and C++ class?
|
View Answer
|
|
How do you know that your class needs a virtual destructor?
|
View Answer
|
|
What is the difference between new/delete and malloc/free?
|
View Answer
|
|
What happens when a function throws an exception that was not specified by an exception specification for this function?
|
View Answer
|
|
Can you think of a situation where your program would crash without reaching the breakball, which you set at the beginning of main()?
|
View Answer
|
|
What issue do auto_ptr objects address?
|
View Answer
|
|
Is there any problem with the following:
|
View Answer
|
|
Why do C++ compilers need name mangling?
|
View Answer
|
|
Is there anything you can do in C++ that you cannot do in C?
|
View Answer
|
|
What is problem with Runtime type identification?
|
View Answer
|
|
What is Pure Virtual Function? Why and when it is used ?
|
View Answer
|
|
What about Virtual Destructor?
|
View Answer
|
|
Is it possible to have Virtual Constructor? If yes, how? If not, Why not possible ?
|
View Answer
|