heap

This is a discussion on heap within the C++ Programming forums, part of the General Programming Boards category; Thank you for the info. But I still am a bit lost,is a heap the same as a binary tree? ...

  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
    zen
    zen is offline
    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, 10: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, 04:03 AM
  5. stach and heap.
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 01-26-2002, 08:37 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21