06/16/2021 17:16 | Category: dsa

Tags: reviewlinkedlistarraylist

arraylist linkedlist review

There are two implementations of the List ADT so far, ArrayList and LinkedList.

Data structures and ADTs so far:

Data structures and ADTs

Big-o review

The * indicates that big-o used an amortized analysis.

Assumptions:

  • A size variable has been used
  • Linkedlists have a tail reference and are non-circular
    • Time complexities for other combinations with no tail or circular variants can be derived

Arraylist and linkedlist time complexities:

Arraylist and linkedlist time complexities