To sort an integer sequence { 3,87,12,61,70,97,26,45 } using Heapsort.Please fill in the blanks.(8 points)The initial heap structure after building the heap:The sorting progress:(1)87 70 26 61 45 12 3 97;(2) ; (3)61 45 26 3 12 70 87 9
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/01 05:14:22
![To sort an integer sequence { 3,87,12,61,70,97,26,45 } using Heapsort.Please fill in the blanks.(8 points)The initial heap structure after building the heap:The sorting progress:(1)87 70 26 61 45 12 3 97;(2) ; (3)61 45 26 3 12 70 87 9](/uploads/image/z/10133747-35-7.jpg?t=To+sort+an+integer+sequence+%7B+3%2C87%2C12%2C61%2C70%2C97%2C26%2C45+%7D+using+Heapsort.Please+fill+in+the+blanks.%288+points%29The+initial+heap+structure+after+building+the+heap%EF%BC%9AThe+sorting+progress%EF%BC%9A%EF%BC%881%EF%BC%8987+70+26+61+45+12+3+97%3B%EF%BC%882%EF%BC%89+%3B+%EF%BC%883%EF%BC%8961+45+26+3+12+70+87+9)
To sort an integer sequence { 3,87,12,61,70,97,26,45 } using Heapsort.Please fill in the blanks.(8 points)The initial heap structure after building the heap:The sorting progress:(1)87 70 26 61 45 12 3 97;(2) ; (3)61 45 26 3 12 70 87 9
To sort an integer sequence { 3,87,12,61,70,97,26,45 } using Heapsort.Please fill in the blanks.(8 points)
The initial heap structure after building the heap:
The sorting progress:
(1)87 70 26 61 45 12 3 97;(2) ;
(3)61 45 26 3 12 70 87 97;(4) ;
(5)26 12 3 45 61 70 87 97;(6) ;
(7)3 12 26 45 61 70 87 97.
To sort an integer sequence { 3,87,12,61,70,97,26,45 } using Heapsort.Please fill in the blanks.(8 points)The initial heap structure after building the heap:The sorting progress:(1)87 70 26 61 45 12 3 97;(2) ; (3)61 45 26 3 12 70 87 9
(2) 70, 61, 26, 3, 45, 12, 87, 97
(4) 45, 12, 26, 3, 61, 70, 87, 97
(6) 12, 3, 26, 45, 61, 70, 87, 97