Search:

Type: Posts; User: Trebor

Search: Search took 0.01 seconds.

  1. Thread: Big-O analysis

    by Trebor
    Replies
    6
    Views
    1,904

    Yes, I believe you are right. Thanks

    Yes, I believe you are right. Thanks
  2. Thread: Big-O analysis

    by Trebor
    Replies
    6
    Views
    1,904

    I'll try to explain: Big-O (order of...

    I'll try to explain:



    Big-O (order of magnitude) function gives a rounded-off measurement of the run time for an algorithm (usually the worst-case run-time). The function f(n) in O(f(n)) is the...
  3. Thread: Big-O analysis

    by Trebor
    Replies
    6
    Views
    1,904

    Sorry, but thats all the code I have. We are...

    Sorry, but thats all the code I have. We are studing sorting algorithms and the Big-O notations. A question given us is to give a Big-O analysis of the following code. Maybe thats why I'm...
  4. Thread: Random Sort

    by Trebor
    Replies
    1
    Views
    3,649

    Random Sort

    I have this program that generates random numbers which works but now I need to add a program that will perform a buble sort and I can't get the two programs to be compatible.

    #include <stdlib.h>...
  5. Thread: C+ Sorting

    by Trebor
    Replies
    6
    Views
    1,518

    Yes, there are several syntax errors. What I'm...

    Yes, there are several syntax errors. What I'm trying to do is replace the fixed set of numbers with a way for the program to randomly generate a given set of numbers and then do the bubble sort. ...
  6. Thread: C+ Sorting

    by Trebor
    Replies
    6
    Views
    1,518

    C+ Sorting

    I am working on a sorting program that generates a list of random numbers and does a sort. I have run across some programs in an old C book. In the bubble sort it doesn't seem to work. Since I am...
  7. Thread: Program help

    by Trebor
    Replies
    4
    Views
    1,373

    Program help

    My first C++ program and no idea where to begin. We are to design and implement
    a Set class which should have these methods:

    Set_Display -- list entire contents of set to screen
    Set_Empty --...
Results 1 to 7 of 8