Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. template<class Type> Type ArrayPQ<Type>::removeMin(void ) throw(exception) {
  2. if (isEmpty())
  3. {
  4. cout << "Empty Priority Queuen";
  5. }
  6. else
  7. {
  8. Type min = array[0];
  9. array[0] = array[heap];
  10. heap--;
  11. minHeapify(0);
  12. return min;
  13. }
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement