Zulip Chat Archive

Stream: lean4

Topic: unbalanced RBMap and RBSet


Arthur Paulino (Jan 21 2023 at 11:33):

Does inserting elements with monotonically increasing/decreasing keys causes those structures to become unbalanced or do they have some self-balancing heuristic?

Arthur Paulino (Jan 21 2023 at 11:35):

Ah, I'm asking about the Std versions specifically

Sebastian Ullrich (Jan 21 2023 at 11:41):

The implementation is in the name :) . Red-black trees are self-balancing.

Arthur Paulino (Jan 21 2023 at 11:43):

Thanks, I didn't know that


Last updated: Dec 20 2023 at 11:08 UTC