Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Big-O Notation - What is it good for?

by Limbic~Region (Chancellor)
on Sep 15, 2006 at 14:07 UTC ( #573138=perltutorial: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for my $i (0 .. $#array) {
        for my $j (0 .. $#array) {
    ...
            # Compare $i, $j
        }
    }
    
  2. or download this
    for my $i (0 .. $#array - 1) {
        for my $j ($i + 1 .. $#array) {
            # Compare $i, $j
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perltutorial [id://573138]
help
Chatterbox?
[Corion]: Ouch. I just learned something about Chrome - the "version numbers" are not really feature numbers... Chrome 62 still gets new features even though Chrome 64 is out and Chrome 65 is the dev version

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2017-12-12 20:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (335 votes). Check out past polls.

    Notices?