The weight of each question is given with the question
Use as much paper as you wish, but make your answers are legible.
Please answer each question thoughtfully and carefully.
[1 pt] Define Abstract Data Type
[4 pts] Define the ADT List using the definition in part 1
[10 pts] Write a procedure which given an array of elements and the
number of elements in the array, places the elements in
the array in descending order (largest item in position 0).
[5 pts] Write a procedure which given an array of elements, the length
of the array, and an item, returns true if item is present
in the array and false if the item is not present in the array.
[5 pts] Give an example of an algorithm which runs in O(1), O(lg n),
O(n) and O(n2).
[5 pts] Discuss the difference between an ordered list and an unordered
list (performance, behavior. ...). When should each be used?
[10 pts] Assume an array based implementation of a linked list. Assume
the array size is 5. Show the data structure and the list
after the following operations: