Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^6: Opening random files then reading random lines from file.

by JavaFan (Canon)
on Apr 27, 2012 at 15:46 UTC ( [id://967669]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Opening random files then reading random lines from file.
in thread Opening random files then reading random lines from file.

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).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://967669]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (8)
As of 2024-04-18 14:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found