What are Binay tress and B trees? Diff between them?

Answer Posted / nutan

A B-tree is a method of placing and locating files (called
records or keys) in a database when all the data is known
to be on DISK.
A Binary-tree is a method of placing and locating files
(called records or keys) in a database when all the data is
known to be in RAM.

It takes thousands of times longer to access a data element
from hard disk as compared with accessing it from RAM,
because a disk drive has mechanical parts, which read and
write data far more slowly than purely electronic media.

B-trees save time by using nodes with many branches (called
children), compared with binary trees, in which each node
has only two children. When there are many children per
node, a record can be found by passing through fewer nodes
than if there are two children per node.

Depth of a B-tree is smaller as compared to a binary tree
and hence B-tree allows a desired record to be located
faster, assuming all other system parameters are identical.

Is This Answer Correct ?    33 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is constructor and destructor in c++?

707


Why do we use setw in c++?

757


What is a flag in c++?

710


What is the use of "new" operator?

757


Write about a nested class and mention its use?

718






Is dev c++ free?

692


Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)

1589


Describe public access specifiers?

666


What is the difference between struct and class?

876


State two differences between C and C++.

705


How do you remove an element from a set in c++?

681


Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort

750


What is the use of register keyword with the variables?

636


What is a map in c++?

684


What is malloc in c++?

632