摘要: DescriptionA well known algorithm called heapsort is a deterministic sorting algorithm taking O(n log n) time and O(1) additional memory. Let us describe ascending sorting of an array of different integer numbers. The algorithm consists of two phases. In the first phase, called heapification, the ar 阅读全文
posted @ 2013-08-31 21:02 Oyking 阅读(398) 评论(0) 推荐(0) 编辑
摘要: DescriptionAndy is fond of old computers. He loves everything about them and he uses emulators of old operating systems on his modern computer. Andy also likes writing programs for them. Recently he has decided to write a text editor for his favorite text-mode operating system. The most difficult ta 阅读全文
posted @ 2013-08-31 19:02 Oyking 阅读(228) 评论(0) 推荐(0) 编辑