Cover Data Structures and Algorithms with Object-Oriented Design Patterns in Java
next up previous contents index

Other Operations on Sorted Lists

Unfortunately, it is not possible to do a binary search in a linked list. As a result, it is not possible to exploit the sortedness of the list in the implementation of any of the other required operations on sorted lists. The methods inherited from the OrderedListAsLinkedList provide all of the needed functionality.


next up previous contents index

Bruno Copyright © 1998 by Bruno R. Preiss, P.Eng. All rights reserved.