I need to add an element with a given priority to a sorted priority queue.
Also.... can someone give me the psuedo code for it??
Thanx to those who replied to my previous post, but it didnt really help
Jason
Printable View
I need to add an element with a given priority to a sorted priority queue.
Also.... can someone give me the psuedo code for it??
Thanx to those who replied to my previous post, but it didnt really help
Jason
Priority queues aren't sorted, they are heaps. Do you want a technical description on how a heap works?
Priority queues (made with heaps) are just a spectial kind of balanced binary tree. Do you know how to make a binary tree?