Pagini recente » Diferente pentru utilizator/1475369147896537415369 intre reviziile 3 si 2 | Diferente pentru blog/meet-in-the-middle intre reviziile 83 si 82 | Diferente pentru blog/putina-istorie-acm-icpc-seerc intre reviziile 8 si 7 | Diferente pentru blog/meet-in-the-middle intre reviziile 78 si 77 | Diferente pentru blog/meet-in-the-middle intre reviziile 46 si 45
Nu exista diferente intre titluri.
Diferente intre continut:
bq. Given n a prime number and p, q two integer numbers between 0 and n-1 find k such that p^k^ = q modulo n.
This problem can be solved using the baby step, giant step algorithm which uses the meet in the middle trick.
We can write k = $i sqrt(n) + j$
We can write !http://latex.codecogs.com/gif.latex?k%20=%20i[\sqrt{n}%20+%201]%20+%20j!
Notice that i <= sqrt(n) and j <= sqrt(n).
Now our equality looks like this p^ (i ([sqrt(n)] + 1) + j) = q modulo n. We can divide by p^j and get p^(i[sqrt(n)] + 1) = qp^-j modulo n.
Now the application of meet in the middle becomes obvious. We can brute force through the numbers on each side of the equality and find a match.
Nu exista diferente intre securitate.
Topicul de forum nu a fost schimbat.