> hi all,
> i am using Robert Lafore's book to learn JAVA, which i hope, you are
[quoted text clipped - 9 lines]
>
> any help appreciated and thanks in advance.
Heaps aren't specific to Java.
Changing a between a min-heap and a max-heap is as simple as reversing
the "<" to a ">" where appropriate.

Signature
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>
Lew - 22 Dec 2007 02:05 GMT
Totti wrote:
>> i [sic] am using Robert Lafore's book to learn JAVA, which i hope, you are
>> familiar with.
[quoted text clipped - 6 lines]
>> please give me some general info on how this thing works and what
>> should be altered to make it work otherwise i mean from max to min
> Heaps aren't specific to Java.
>
> Changing a between a min-heap and a max-heap is as simple as reversing
> the "<" to a ">" where appropriate.
Was it in this thread that someone recently recommended
<http://bcs.wiley.com/he-bcs/Books?action=mininav&bcsId=3663&itemId=0470105550&as
setId=110292&resourceId=10137&newwindow=true>
which has a very thorough, engaging and Java-centric discussion of heaps and
heapsort in that free chapter?

Signature
Lew