Content deleted Content added
m →Algorithm: https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Computer_science/Manual_of_style#Low-level_pseudocode |
m →Algorithm: \begin{cases} |
||
Line 6:
==Algorithm==
Let
:<math>
f(x) =
\beta x & x\in S_0\\
x^2 & x\in S_1\\
\alpha x & x\in S_2
\end{
</math>
Line 19:
:<math>\begin{align}
g(x,n) &=
n & x\in S_0\\
2n \ (\bmod \ p) & x\in S_1\\
n+1 \ (\bmod \ p) & x\in S_2
\end{
\\
h(x,n) &=
n+1 \ (\bmod \ p) & x\in S_0\\
2n \ (\bmod \ p) & x\in S_1\\
n & x\in S_2
\end{
\end{align}</math>
Line 53:
'''return''' ''x''
'''else''' <u># ''x<sub>i</sub>'' ≠ ''x''<sub>2''i''</sub></u>
''i'' ← ''i
'''break loop'''
'''end if'''
|