As a group, discuss the run-times (i.e., big-$O$) of the following operations to arrays and linked lists (both singly- and doubly- linked lists).
Adding an element to the beginning of the list
Adding an element to the end of the list (what are things to consider for arrays?)
Adding an element to the middle of the list
Deleting an element from the end of the list
Deleting an element from the middle of the list
Deleting an element from the beginning of the list
Finding an element in the list
Accessing the 5th element of the list (assuming there are at least 5 elements)
What are some of the disadvantages of arrays?
In Java, its static which occupies space if you need a new copy to expand the size
What are some ideas you have for improving upon these disadvantages?
What are some of the disadvantages of linked lists?
What are some ideas you have for improving upon these disadvantages?