The specifications for the Sorted List ADT state that the item to be deleted is in the list. 1. Rewrite the specification for DeleteItem so that the list is unchanged if the item to be deleted is not in the list. 2. Implement DeleteItem as specified in (a) using an array-based implementation. 3. Implement DeleteItem as specified in (a) using a linked implementation.
The specifications for the Sorted List ADT state that the item to be
deleted is in the list.
1. Rewrite the specification for DeleteItem so that the list
is unchanged if the item to be deleted is not in the list.
2. Implement DeleteItem as specified in (a) using an
array-based implementation.
3. Implement DeleteItem as specified in (a) using a
linked implementation.
4. Rewrite the specification for DeleteItem so that all
copies of the item to be deleted are removed if they exist.
5. Implement DeleteItem as specified in (d) using an
array-based implementation.
6. Implement DeleteItem as specified in (d) using a
linked implementation.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
5. Implement DeleteItem as specified in (d) using an
array-based implementation.
6. Implement DeleteItem as specified in (d) using a
linked implementation.