Search:

Type: Posts; User: iMalc

Search: Search took 0.03 seconds.

  1. Replies
    5
    Views
    1,618

    Remember, for four items, n*n/2 = 8 and n*log2(n)...

    Remember, for four items, n*n/2 = 8 and n*log2(n) = 8
    The sorts that are more efficient at larger sizes tend to also do extra things that the O(n*n) sort doesn't need to. Like walk through a list to...
  2. Replies
    5
    Views
    1,618

    Forget Bubble Sorting in this instance. While...

    Forget Bubble Sorting in this instance. While that's easy to implement for an array, it's hideously difficult to implement correctly for a linked-list, assuming you do it by re-linking the list's...
Results 1 to 2 of 2