Hello, Can anyone help me understand/explain how a min heap is implemented using scheme?
The documentation on Racket at http://docs.racket-l...aps.html?q=heap
describes it but it is not showing how a heap is made from a list or from numbers.
I Need example usage.
Appreciate the help!
Scheme - Heap
Page 1 of 11 Replies - 2765 Views - Last Post: 30 January 2012 - 08:16 PM
Replies To: Scheme - Heap
#2
Re: Scheme - Heap
Posted 30 January 2012 - 08:16 PM
You can create an empty heap using create-heap and then add the contents of your list using heap-add-all!.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|