Изменения
→Пример реализации
'''if''' v == root '''or''' v.parent == root
v.suffLink = root
v.suffLink = getLink(getSuffLink(v.parent), v.charToParent)
'''return''' v.suffLink
'''if''' v.son[c]
v.go[c] = v.son[c]
v.go[c] = root
v.go[c] = getLink(getSuffLink(v), c)
'''return''' v.go[c]
'''if''' getSuffLink(v).isLeaf
v.up = getSuffLink(v)
v.up = root
v.up = getUp(getSuffLink(v))
'''return''' v.up