Search:

Type: Posts; User: KBriggs

Search: Search took 0.01 seconds.

  1. Replies
    15
    Views
    4,858

    Right you are. I still am having trouble seeing...

    Right you are. I still am having trouble seeing how there is no order in shuffling increasingly small parts of an array, but results are results - I'll look in detail when I have more time.
  2. Replies
    15
    Views
    4,858

    Oops, yes, I did not use swap - I did not need...

    Oops, yes, I did not use swap - I did not need it. I do the shuffling in the loop using the third array.

    However, I stand corrected.
  3. Replies
    15
    Views
    4,858

    If this were true, then we could randomize the...

    If this were true, then we could randomize the array N times, and take the average of the elemetns of the array over all those times, and assuming that the briefcases were uniformly distributed, we...
  4. Replies
    15
    Views
    4,858

    Doing that, won't you only swap elements at the...

    Doing that, won't you only swap elements at the end of the array with elements that are quite near? And the last element would not get swapped at all unless it happened to get swapped before. If the...
  5. Replies
    15
    Views
    4,858

    Did you try anything at all? rand - C++...

    Did you try anything at all?

    rand - C++ Reference
Results 1 to 5 of 5