Skip to main content
3 of 3
edited tags
Raphael
  • 72.9k
  • 30
  • 181
  • 393

How can one search in O(log n) time in a red-black tree?

How does the search operation for a red-black tree work and how does it take $O(\log n)$ time, where $n$ is the number of items? I know a red-black tree takes $O(\log n)$ recolorings and $O(1)$ rotations, but I was specifically interested in a good description of its search operation.

user21996
  • 101
  • 2
  • 7