In which scenario would a Red-Black tree be preferred over an AVL tree?
-
When frequent insertions and deletions are expected.
-
When memory usage is a critical factor.
-
When the dataset is static and does not change.
-
When the tree needs to be perfectly balanced.