Data Structures

- 1 min

Data Structures

Linked Lists

image

Comparison

Limitation of arrays

Advantage of arrays

Linked list —> used when size not know and changes a lot

Structure of linked list

In a program need to store on average N integers, Worst case can be 2N.

Array or linked?

Functions

Queue

Priority Queue

Stack

Hashing

BST

AVL Trees

Heap