129
правок
Изменения
м
Нет описания правки
'''function''' <tex>p(n)</tex>:
<tex>l = 0, r = 1</tex>
'''for''' <tex> k = 1</tex> '''to''' <tex>n </tex>
<tex> m = \dfrac{l+r}{2} </tex>
'''if''' <tex> m < \alpha</tex>
<tex>l = m, t =</tex> <tex>1</tex>
'''else'''
<tex>r = m, t =</tex> <tex>0</tex>
'''return''' <tex>t</tex>