Pregunta de entrevista de Google

Difference between RB trees and B trees?

Respuestas de entrevistas

Anónimo

13 jun 2013

A red black tree is a binary search tree that is analogous to a B tree of order 4. B trees are k ary search trees in which each level has up to k children and each child has k-1 values.... something like that, I don't know how specific an answer they wanted

Anónimo

23 ago 2013

A red-black tree is a self-balancing binary search tree. It is guaranteed to always be balanced, but is complex to implement. A B tree is a n-ary search tree in which each node has up to n-1 values and n children.

1

Anónimo

29 jul 2022

Red - black :- red black tree is binary tree representation of 2-4-3 tree. the child pointers in red- black tree is :- red and black... B- tree :- b tree is the size of each node which can be made as large as the size of the disk.. block size varies of each system

Anónimo

29 jul 2022

Red - black :- red black tree is binary tree representation of 2-4-3 tree. the child pointers in red- black tree is :- red and black... B- tree :- b tree is the size of each node which can be made as large as the size of the disk.. block size varies of each system

Anónimo

6 jun 2013

I forgot