1/k is certainly not complicated in the least.
The proof that it is correct is trivial for a proof.
The only part I can see that could be called complex is the fact that the algorithm is not immediately obvious and needs a proof. (Even if just an engineering "proof"-by-example.)
In reply to Re^5: Opening random files then reading random lines from file.
by SuicideJunkie
in thread Opening random files then reading random lines from file.
by fame
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |