The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

AOTM (Algorithm of the Moment) by jmaxsohmer2006-09-25 19:03:48
  Interestingly, there's already an algorithm to by Arachnid2006-09-25 19:40:03
    Its not linear per se... by imperito2006-09-25 19:44:08
      O(n * k), actually by Arachnid2006-09-25 19:49:43
        you are imposing artificial constraints, though by imperito2006-09-25 19:52:22
          It's not n log n by Arachnid2006-09-25 19:55:48
            but it isn't constant. by imperito2006-09-25 19:57:47
              No, it's not! by Arachnid 2006-09-25 20:00:27
If I'm sorting a given dataset, the length of each item does not depend on the number of items. If I'm sorting 32bit integers, my integers are 32 bits if I'm sorting 10,000 of them, and 32 bits if I'm sorting 1,000,000 of them. If I'm sorting dictionary words, the average length of a word is the same if I'm sorting 100 or a billion. The two variables are totally independent.

And in most situations, the length of the terms is constant, and the runtime of the algorithm varies only according to input size, so it can be expressed (in those situations) as O(n).
[ Reply ]
                and what if you are sorting 10 000 000 000 of them by imperito2006-09-25 20:03:52
                  It doesn't matter. by Arachnid2006-09-25 20:09:35

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)