
105年公務人員特種考試警察人員、一般警察人員
考試及105年特種考試交通事業鐵路人員考試試題 代號:71070 全三頁
第三頁
考試別: 鐵路人員考試
等別: 高員三級考試
類科別: 資訊處理
科目: 資料結構
(請接背面)
五、下表第一行給定 16 個需要被排序的英文字,第七行是將第一行 16 個英文字被正確
排序後的順序。請分析第二行至第六行的排序順序是採用
快速排序法(quick
sort),
希爾排序法(13-4-1 Shell so rt),
堆積排序法(heap sort),
選擇排序法
(selection sort),或
插入排序法(insertion sort),所排序第一行 16 個英文字過程
的暫時結果。(每小題 5分,共 25 分)
第一行 第二行 第三行 第四行 第五行 第六行 第七行
that bye bye fruit fruit zoo bye
work that fruit heaven good work fruit
heaven good good manner heaven wish good
thought heaven heaven that that thought heaven
that fruit manner that bye think manner
wish that that that that winner that
wish manner that think manner wish that
zoo that that thought that that that
fruit that that wish zoo fruit that
think think think wish think that think
manner wish thought work wish manner thought
that thought winner zoo wish that winner
winner winner wish winner winner heaven wish
bye wish zoo bye that bye wish
that work work that thought that work
good zoo wish good work good zoo
請說明第二行是採取那一種排序法之排序過程的暫時結果?
請說明第三行是採取那一種排序法之排序過程的暫時結果?
請說明第四行是採取那一種排序法之排序過程的暫時結果?
請說明第五行是採取那一種排序法之排序過程的暫時結果?
請說明第六行是採取那一種排序法之排序過程的暫時結果?