Modified Heap Sort (MHS) in Chapter 2 (Matlab codes)
softwareposted on 28.11.2020, 23:00 by Sittichoke Som-AmSittichoke Som-Am
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.