Hudon
2011-07-27 22:11:51 UTC
Would it be possible to get the solution for this question? (from our midterm)
"Prove that no realization of the Priority Queue ADT that only uses comparisons between keys can have running time O(1) for both the insert and delete-max operations."
I don't understand how it can be soundly proven that no data structure will ever be able to do this.
"Prove that no realization of the Priority Queue ADT that only uses comparisons between keys can have running time O(1) for both the insert and delete-max operations."
I don't understand how it can be soundly proven that no data structure will ever be able to do this.