Is the array with values \(\{23, 17, 14, 6, 13, 10, 1, 5, 7, 12\}\) a max-heap?
No. The \(7\) node is greater than its parent.
The following LaTeX code was used to generate the above heap:
Is the array with values \(\{23, 17, 14, 6, 13, 10, 1, 5, 7, 12\}\) a max-heap?
No. The \(7\) node is greater than its parent.
The following LaTeX code was used to generate the above heap: