資料結構期末考(使用C++)

Avatar of 梁盛鈞.
Avatar of 梁盛鈞.

資料結構期末考(使用C++)

Taoyuan, Taoyuan District, Taoyuan City, Taiwan
資科2A資料結構期末考 1.(先建好max heap,印出array內容,占一半分數)Sort numbers (6, 3, 0, 1, 12, 9, 2, 8, 4, 11, 15 ) by using Heap Sort. Print the sorted result (from small to big). 2.使用graph.cpp,寫出directed_add(),用以建構有向圖形,建立圖形,edge Set為:<1, 4>, <1, 2>, <3, 4>, <4, 2>, <2, 1>, <1, 0>, <0, 4>, <0, 3>。印出自4開始的DFS結果。也印出各頂點的out-degree。 原始檔及題目:https://github.com/AlanLiang0403/DataStructureFinalExam
Avatar of the user.
Please login to comment.

Published: Apr 9th 2019
209
7
0

Algorithm
C++

Share