Access the full text.
Sign up today, get DeepDyve free for 14 days.
FEATURE ARTICLE DELETING THE RIGHTMOST BOTTOMMOST LEAF OF A HEAP following additional restriction: If leaves do exist on two adjacent levels, no additional leaves can be inserted on the higher adjacent level. Thus, if we know the number of nodes on this tree, we will know the position of the rightmost botttommost node. We will assume that the number of nodes on this binary tree is maintained throughout insertions and deletions and that number is accessible. Alan F. Lewit Professor of Computer Science University of the Virgin Islands Kingshill, VI 00850 Alewit@uvi.edu I am presently teaching a sophomore level course in Data Structures and I am using an excellent text by Thomas A. Standish 1. In a section entitled An Application Heaps and Priority Queues, a strategy is offered for fetching the value of the highest priority item at the root of a tree and replacing the roots value with the value of the rightmost leaf on the bottom row. After the value of this rightmost leaf is obtained and placed in the root, that node is deleted. If the tree used to represent the heap uses a linked object implementation, how would one go about locating the
3C ON-LINE – Association for Computing Machinery
Published: Oct 1, 1997
Read and print from thousands of top scholarly journals.
Already have an account? Log in
Bookmark this article. You can see your Bookmarks on your DeepDyve Library.
To save an article, log in first, or sign up for a DeepDyve account if you don’t already have one.
Copy and paste the desired citation format or use the link below to download a file formatted for EndNote
Access the full text.
Sign up today, get DeepDyve free for 14 days.
All DeepDyve websites use cookies to improve your online experience. They were placed on your computer when you launched this website. You can change your cookie settings through your browser.