When to choose Red-Black tree, AVL tree and B-trees?

Như Quỳnh

New member
When to choose Red-Black tree, AVL tree and B-trees?
A. many inserts, many searches and when managing more items respectively
B. many searches, when managing more items respectively and many inserts respectively
C. sorting, sorting and retrieval respectively
D. retrieval, sorting and retrieval respectively
 
Answer: A
Explanation: Red black when frequent inserts and deletes, AVL when less frequent inserts and deletes, B-tree when using paging from a slow storage device.
 

Tìm kiếm

Back
Top