Revise the implementation of the adt binary search tree to


If you know in advance that you often access a given item in a binary search tree several times in succession before accessing a different item, you will end up searching for the same item repeatedly. One way to avoid this problem is to add an extra bookkeeping component to your implementation. That is, you can maintain a last accessed pointer that will always reference the last item that any binary search tree operation accessed. Whenever you perform such an operation, you can check the search key of the item most recently accessed before performing the operation. Revise the implementation of the ADT binary search tree to add this new feature by adding the data member last Accessed to the class.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Revise the implementation of the adt binary search tree to
Reference No:- TGS01422147

Expected delivery within 24 Hours