Изменения
→Обновление
Псевдокод:
<code>
'''void''' update('''int''' newElem, '''int''' x1, '''int''' x2, ..., '''int''' xP, '''int''' x1Left, '''int''' x1Right, '''int''' x2Left, '''int''' x2Right, ..., '''int''' xPLeft, '''int''' xPRight, '''int''' leftBorder, '''int''' rightBorder, '''int''' node)
'''if''' leftBorder != rightBorder
med = (leftBorder + rightBorder) / 2