This document summarizes running time tests of different data structures for an assignment. It finds that for smaller values of n, a linked list implementation of a bag is faster, but for larger n a dynamic array becomes faster due to memory usage. It also notes that a dynamic array would perform faster than a linked list for search operations due to its ordered nature. While remove operations may take slightly longer than contains due to rearranging elements, the overall performance difference is expected to be small.
Related topics: