



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Abstract Data Types - ANSA class considered without regard to its implementation E.g. Stacks, queues, or lists Arrays - ANSAdvantages
Double-ended linked-list - ANSContains an additional reference to the last link
Linked-List: Implementation of stacks/queues - ANS- Does not require the knowledge of the maxSize
O(N) but fewer swaps than comparisons Ordered arrays - ANSfast binary search O(logN) slow insertion and deletion O(N) Priority Queue - ANSdequeue is O(1) but enqueue is O(N) --> slow insertion, so priority queue is often implemented using a heap to improve insertion time Quick Sort - ANSAverage is O(NlogN)