query on priority queues

hi. i have an array if integers like 1 1 2 5 5 6 and i want to assign priorities to them like a[5] has e heighest priority followed by a[4] then a[5] then a[2] then a[1] and then a[0] .So how can i implement it using priority queue?
Topic archived. No new replies allowed.