Search:

Type: Posts; User: helloworld922

Search: Search took 0.08 seconds.

  1. Replies
    7
    Views
    1,923

    Re: Building Heaps

    You mean descending > random > ascending based purely on number of swaps required, though as we've noticed that there is something else going on which is mucking up the timings.

    Your logic about...
  2. Replies
    7
    Views
    1,923

    Re: Building Heaps

    Hmm...

    I can't see any inherent reason why this is the case, though I have verified that the results appear to be valid (ran about 256 times, took the median over a wide variety of dataset sizes)....
  3. Replies
    7
    Views
    1,923

    Re: Building Heaps

    How are you timing your results?

    Micro benchmarking in Java is a very tricky subject, there can be huge variances to your times even when you try benchmarking the exact same code.

    Also,...
  4. Replies
    7
    Views
    1,923

    Re: Building Heaps

    Wikipedia - Binary Heap

    Building a heap with all the information available involves 2 steps:
    1. Dump all the elements into the structure (O(n)).
    2. Satisfy the heap property of each sub-tree,...
Results 1 to 4 of 4