hdu #5884 Sort(快速哈夫曼树+队列)
标签:快速哈夫曼树
这道题与上一道题十分相似,本质上都是快速哈夫曼树算法,只不过比上一道题稍难一些。
Recently, Bob has just learnt a naive sorting algorithm: merge sort. Now, Bob receives a task from Alice.
Alice will give Bob NN sorted sequences,
原创
2017-04-17 20:49:57 ·
488 阅读 ·
0 评论