A Piece of Code
Monday, February 4, 2013
priority_queue and heap
priority_queue is implemented using heap
build a heap takes O(n) time
running time of max_heapify: O(log n)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment