Data Structures Time Complexities - Comp 210

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/28

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:15 AM on 5/3/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

29 Terms

1
New cards

Unsorted ArrayList Access: Best/Avg/Worst

O(1)

2
New cards

Unsorted ArrayList Search: Best, Avg,Worst

O(1), O(N)

3
New cards

Unsorted ArrayList Insert (end): Best/Avg, Worst (resize)

O(1), O(N)

4
New cards

Unsorted ArrayList Insert (anywhere)

O(N)

5
New cards

Unsorted ArrayList Delete

O(N)

6
New cards

Sorted ArrayList Access

O(1)

7
New cards

Sorted ArrayList Search (binary search): Best, Avg/Worst

O(1), O(logN)

8
New cards

Sorted ArrayList Insert (shifting elements)

O(N)

9
New cards

Sorted ArrayList Delete

O(N)

10
New cards

Unsorted Linked List Access

O(N)

11
New cards

Unsorted Linked List Search: Best, Avg/Worst

O(1), O(N)

12
New cards

Unsorted Linked List Insert (head)

O(1)

13
New cards

Unsorted Linked List Insert (tail)

O(1) (if tail pointer)

14
New cards

Unsorted Linked List Delete

O(N) (need to find node)

15
New cards

Sorted Linked List Access

O(N)

16
New cards

Sorted Linked List Search: Best, Avg/Worst

O(1), O(N)

17
New cards

Sorted Linked List Insert

O(N) (must find correct spot)

18
New cards

Sorted Linked List Delete

O(N)

19
New cards

Heap Access (top element)

O(1)

20
New cards

Heap Search

O(N)

21
New cards

Heap Insert: Best, Avg/Worst

O(1), O(logN)

22
New cards

Heap Delete (root)

O(logN)

23
New cards

Balanced BST Access

O(logN)

24
New cards

Balanced BST Search: Best, Avg/Worst

O(1), O(logN)

25
New cards

Balanced BST Insert

O(logN)

26
New cards

Balanced BST Delete

O(logN)

27
New cards

Hashtable (with resizing, probing) Search: Best, Avg, Worst

Best O(1), Avg O(1), Worst O(n)

28
New cards

Hashtable (with resizing, probing) Insert: Best, Avg, Worst (resize or clustering)

Best O(1), Avg O(1), Worst O(n) (resize or clustering)

29
New cards

Hashtable (with resizing, probing) Delete: Best, Avg, Worst

Best O(1), Avg O(1), Worst O(n)