in reply to Re^4: Opening random files then reading random lines from file.
in thread Opening random files then reading random lines from file.
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.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Opening random files then reading random lines from file.
by JavaFan (Canon) on Apr 27, 2012 at 15:46 UTC |