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 an operator in c++?

622


How much is c++ certification?

593


What is the function to call to turn an ascii string into a long?

607


Why is the function main() special?

634


What gives the current position of the put pointer?

571






What is static in c++?

602


What is the difference between *p++ and (*p)++ ?

787


Is c or c++ more useful?

587


What is cout flush?

576


Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

645


What is == in programming?

624


How is objective c different from c++?

803


Why do we need pointers?

591


What is abstraction in c++?

688


How does com provide language transparency?

612