The algorithm isn't immediately obvious?

I'm sorry, but if that's the case, it will be true for almost all code posted on Perlmonks. Do note though that I did not post a proof of the algorithm. I posted a proof of the claim the algorithm was fair.

I'd argue that the fact I was willing to actual write down a full proof in the crappy user interface a textbox is, is a proof that the proof is fairly trivial. Any claim of complexity or fairness needs a proof -- but we usually omit them because it's too much work to type it in (or to remember how it goes). "Everyone" knows sorting can be done in O(N log N) time, and that that bound is tight. But noone thinks the proof is easy enough to write down here - if they even know how to prove it. In fact, I claim most Perl programmers never prove anything about their programs, or their claims (although some may consider a test suite to be some kind of proof).


In reply to Re^6: Opening random files then reading random lines from file. by JavaFan
in thread Opening random files then reading random lines from file. by fame

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.