DOI QR코드

DOI QR Code

A Study on the Runtime Test of Priority Queues

우선순위 큐 성능 시험에 관한 연구

  • 정해재 (안동대학교 공과대학 정보통신공학과)
  • Received : 2010.03.18
  • Accepted : 2010.05.20
  • Published : 2010.08.31

Abstract

This paper proposes a set of runtime test models for priority queues and shows the runtime test results based on the proposed test models for the representative priority queues: the traditional heap, post-order heap, and pairing heap. Among these heaps, the traditional heap is the worst in time complexity analyzed. But, according to our experimental results based on the test models proposed, it is shown that the slowest one is the pairing heap that utilizes pointers and the fastest one is the traditional heap. For the two implicit heaps, these results are in contrary to the fact that the post-order heap is better than the traditional heap in time complexity analyzed.

본 논문에서는 우선순위 큐에 대한 성능 시험 모델을 제안하고, 제안된 모델에 따라 대표적인 우선순위 큐인 전통 힙, 후순위 힙, 및 페어링 힙의 성능 시험 결과를 보여준다. 이들 중 전통 힙이 분석된 시간복잡도에 있어서 최악인 것으로 알려져 있다. 그러나 제안된 성능 시험 모델에 근거한 성능 시험 결과에 따르면, 포인터를 사용하는 페어링 힙이 가장 느리고 전통 힙이 가장 빠른 것으로 나타났다. 두 묵시 힙에 대해서도, 분석된 시간복잡도로는 후순위 힙이 전통 힙보다 우수하지만, 성능 시험 결과는 반대인 것으로 나타났다.

Keywords

References

  1. D. Jones, "An empirical comparison of priority-queue and event-set implementations," Communications of the ACM, 29(4), pp.300-311, Apr., 1986. https://doi.org/10.1145/5684.5686
  2. H. Jung, S. Sahni, "Supernode binary search trees," International Journal of Foundations of Computer Science, 14(3), 465-490, 2003. https://doi.org/10.1142/S0129054103001844
  3. H. Jung, "The d-deap$\ast$: A fast and simple cache-aligned d-ary deap", Information Processing Letters, 93(2), pp.63-67, Jan., 2005. https://doi.org/10.1016/j.ipl.2004.10.001
  4. M. Fredman, R. Sedgewick, R. Sleator, and R. Tarjan, "The pairing heap: A new form of self-adjusting heap," Algorithmica, 1, pp.111-129, 1, Mar., 1986. https://doi.org/10.1007/BF01840439
  5. T.J. Stasko and J.S. Vitter, "Pairing heaps: experiments and analysis", Communications of the ACM, 30(3), pp.234-249, 1987. https://doi.org/10.1145/214748.214759
  6. M. Fredman and R. Tarjan, "Fibonacci heaps and their uses in improved network optimization algorithms," JACM, 34(3), pp.596-615, 1987. https://doi.org/10.1145/28869.28874
  7. S. Bansal, S. Sreekanth, and P. Gupta, "M-heap: A Modified heap data structures," International Journal of Foundations of Computer Science, 14(3), pp.491-502, 2003. https://doi.org/10.1142/S0129054103001856
  8. J. Williams, "Algorithm 232 Heapsort," Communications of the ACM, 7(1), pp.347-348, 1964.
  9. N. Harvey and K. Zatloukal, "The Post-order heap," In Proceedings of the Third International Conference on Fun with Algorithms(FUN), May, 2004.
  10. E. Horowitz, S. Sahni, and D. Mehta, Fundamentals of Data Structures in C++, W. H. Freeman, San Francisco, 1995.