Изменения

Перейти к: навигация, поиск
Нет описания правки
'''order''' compare('''int''' j1, '''int''' j2)
same = '''lcp'''(j1, j2)
'''if ''' s[j1 + same] < s[j2 + same]
'''return''' ''LT''
'''else if ''' s[j1 + same] == s2[j2 + same]
'''return''' ''EQ''
'''else'''
'''return''' ''GT''
l2 = suf[i]
r2 = suf[i] + l
'''if''' (c[l1] <tex>\neq</tex> c[l2] '''or''' c[r1] <tex>\neq</tex> c[r2])
c'[suf[i]] = c'[suf[i - 1]] + 1
'''else'''
'''order''' compare1('''int''' j1, '''int''' j2)
'''if ''' s[j1] < s[j2]
'''return''' ''LT''
'''else if ''' s[j1] == s[j2]
'''return''' ''EQ''
'''else'''
'''return''' ''GT''
97
правок

Навигация