Search:

Type: Posts; User: IHeartProgramming

Search: Search took 0.20 seconds.

  1. Replies
    7
    Views
    1,921

    Re: Building Heaps

    **But in general, is my logic correct where building a heap (bottom up) for descending data faster > build heap via ascending data > build heap via random data. The reason it makes sense to use...
  2. Replies
    7
    Views
    1,921

    Re: Building Heaps

    But in general, is my logic correct where building a heap (bottom up) for descending data faster > build heap via ascending data > build heap via random data.

    I used 1 million items for random...
  3. Replies
    7
    Views
    1,921

    Re: Building Heaps

    If I wanted a max-heap, then if my array is is descending order, then the max-heap is already built so I understand why that is faster than performing build heap on an array with ascending order...
  4. Replies
    7
    Views
    1,921

    Building Heaps

    I'm unsure how to explain why building a heap with the entire list/array given in advance achieves O(n) vs successive insert which is worst with O(nlgn).
Results 1 to 4 of 4