Thread: Can you give me your tip plz :)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >although if you're choosing 10 random numbers from a group of 400 000
    Of course, since the OP gave no specific numbers, we can't make that assumption. So without more detail, the simpler method is preferred. If the range of numbers is too much for a table, then a binary search tree would be much better than a table for space usage, without much loss in performance. However, the nested loop option will likely be more efficient if the arrays are sure to be very small. The choice of solution depends on the data.
    My best code is written with the delete key.

  2. #2
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,164
    Quote Originally Posted by Prelude
    >although if you're choosing 10 random numbers from a group of 400 000
    Of course, since the OP gave no specific numbers, we can't make that assumption. So without more detail, the simpler method is preferred.
    Or the guaranteed method is preferred, as a freq table may be too large and unwieldly...

    Quote Originally Posted by Prelude
    The choice of solution depends on the data.
    So true
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Plz give some comments over this topic
    By 03005654926 in forum C++ Programming
    Replies: 5
    Last Post: 06-18-2009, 10:35 AM
  2. plz help me...
    By sweetchakri in forum C Programming
    Replies: 1
    Last Post: 03-03-2009, 11:50 PM
  3. Please Give Me what i want..
    By chottachatri in forum C++ Programming
    Replies: 5
    Last Post: 03-24-2008, 04:11 AM
  4. Displaying a balloon tip on sys trap app at startup
    By BobS0327 in forum Windows Programming
    Replies: 0
    Last Post: 03-25-2005, 08:35 PM
  5. How To Give A Font Colour ?
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 09-14-2001, 01:22 PM