In case of applying deleting operation on ascending priority queue; elements are retrieved in ascending order.. however if a small element is inserted after several deletions; the next retrival will return that smsller element, which may be smaller than a previously retrieved element...
Above is the statement given in the book of Data Structures by Tenenbaum; but logically always the smallest item should be deleted, isn't it so?
Above is the statement given in the book of Data Structures by Tenenbaum; but logically always the smallest item should be deleted, isn't it so?
Comment