TEXT
heapA2.m (4.53 kB)
TEXT
heapifydownN1.m (0.3 kB)
TEXT
heapifyup1.m (0.17 kB)
1/0
Modified Heap Sort (MHS) in Chapter 2 (Matlab codes)
We use MHS to solve Example 2.37 in Chapter 2 in order to compare with BSA in 3 dimension.Three are four files:
grid3 is a function to define f=x^2+y^2+z^2.
heapA2 is a heap sort function.
heapifydownN1 is a heapifydown function.
heapifyup1 is a heapifydown function.
History
Usage metrics
Licence
Exports
RefWorksRefWorks
BibTeXBibTeX
Ref. managerRef. manager
EndnoteEndnote
DataCiteDataCite
NLMNLM
DCDC