Search:

Type: Posts; User: Barney McGrew

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    1,359

    I haven't currently run any tests on it, but the...

    I haven't currently run any tests on it, but the performance of the method you suggest varies based on a few factors:

    - How your C library implements qsort. C doesn't specify which sorting...
  2. Replies
    13
    Views
    1,359

    It's probably easier just to use a simple binary...

    It's probably easier just to use a simple binary tree since they're very easy to implement and they're ideal for this particular task. With an array you need to make define a maximum limit (unless...
  3. Replies
    13
    Views
    1,359

    Nah. My first suggestion involves writing a C...

    Nah. My first suggestion involves writing a C program and my second one involves using a program that does a similar thing in a more generic way. You don't need to write a bash script for either, but...
  4. Replies
    13
    Views
    1,359

    Store each record into a struct and insert it in...

    Store each record into a struct and insert it in an ordered binary tree, then write each record in order.

    edit: Or just use "sort -n".
Results 1 to 4 of 4