Thread: heap

  1. #1
    Unregistered
    Guest

    heap

    Thank you for the info. But I still am a bit lost,is a heap the same as a binary tree? For example:

    A heap is initialized(with build_heap),starting with an array with the following strings:
    dorothy,toto,tinman,scarecrow,wizard,lion
    what would the heap array look like?

    If the strings are inserted one at a time,in order,into a initially empty heap. Would it look any different than the initialized array?

    Danny

  2. #2
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    This link might help.
    zen

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. heap
    By George2 in forum Windows Programming
    Replies: 2
    Last Post: 11-10-2007, 11:49 PM
  2. Heap Work
    By AndyBomstad in forum C++ Programming
    Replies: 1
    Last Post: 05-16-2005, 12:09 PM
  3. Do you know...
    By davejigsaw in forum C++ Programming
    Replies: 1
    Last Post: 05-10-2005, 10:33 AM
  4. heap question
    By mackol in forum C Programming
    Replies: 1
    Last Post: 11-30-2002, 05:03 AM
  5. stach and heap.
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 01-26-2002, 09:37 AM