SearchRedBlack(tree,item):
| Input tree, item
| Output true if item found in red-black tree
| false otherwise
|
| if tree is empty then
| return false
| else if item<data(tree) then
| return SearchRedBlack(left(tree),item)
| else if item>data(tree) then
| return SearchRedBlack(right(tree),item)
| else // found
| return true
| end if
|