Изменения

Перейти к: навигация, поиск

Дерево ван Эмде Боаса

16 байт добавлено, 15:21, 4 июня 2015
м
Нет описания правки
'''boolean''' empty(t: '''Tree'''):
'''if''' t.min == ''none''
'''return''''' true''
'''else'''
'''return''''' false''
</code>
'''boolean''' find(t: '''Tree''', x: '''int'''):
'''if''' empty(t)
'''return''''' false''
'''if''' t.min == x '''or''' t.max == x
'''return''''' true''
'''return''' find(t.children[high(x)], low(x))
</code>
251
правка

Навигация