T
Totti
hi all,
i am using Robert Lafore's book to learn JAVA, which i hope, you are
familiar with.
at any rate, in chapter 12 he is talking about HEAPS and he has the
code of making a heap of numbers, but since there are two kinds of
heaps Min and Max, the code covers only the Max which has the Parent
bigger than the children, so i am thinking of how could i change his
code to make it produce a minimun heap?
that is if you are familiar with the book, if you are not, would you
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
any help appreciated and thanks in advance.
i am using Robert Lafore's book to learn JAVA, which i hope, you are
familiar with.
at any rate, in chapter 12 he is talking about HEAPS and he has the
code of making a heap of numbers, but since there are two kinds of
heaps Min and Max, the code covers only the Max which has the Parent
bigger than the children, so i am thinking of how could i change his
code to make it produce a minimun heap?
that is if you are familiar with the book, if you are not, would you
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
any help appreciated and thanks in advance.