Slashdot Mirror


User: cbreeze34

cbreeze34's activity in the archive.

Stories
0
Comments
28
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 28

  1. Re:What is n? on Google Suggest · · Score: 1

    Correction, it can be improved to O(n log n) with a binary search.

  2. Re:What is n? on Google Suggest · · Score: 1

    n represents the most often executed statement in the entire algorithm, or comparing a character to another character...which is why this algorithm is O(n^2). n represents BOTH the length of the word AND the number of words in the database...hence the innermost statement will execute n^2 times, worst case.

    however this performance can be improved to O(log^2 n) if a binary search or some other more intelligent search algorithm is implemented (course then the database has to be sorted).

  3. Re:Nice, but I feel like it's hopeless... on National TV Turn Off Week · · Score: 1

    maybe what's really wrong is that your television only has 512 dots.