CSE 332 Runtimes

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/27

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

28 Terms

1
New cards

Stacks-ArrayList Push

Best: O(1) Worst: O(n)

2
New cards

Stacks-ArrayList Pop

Best/Worst: O(1)

3
New cards

Stacks-ArrayList Peek/Top

Best/Worst: O(1)

4
New cards

Stacks-ArrayList Search

Best/Worst: O(n)

5
New cards

Stacks-LinkedList Push

Best/Worst: O(1)

6
New cards

Stacks-LinkedList Pop

Best/Worst: O(1)

7
New cards

Stacks-LinkedList Peek/Top

Best/Worst: O(1)

8
New cards

Stacks-LinkedList Search

Best/Worst: O(n)

9
New cards

Queue-Circular Array Enqueue

Best: O(1) Worst: O(n) (resized)

10
New cards

Queue- Circular Array Dequeue

Best/Worst: O(1)

11
New cards

Queue-Circular Array Front/Peek

Best/Worst: O(1)

12
New cards

Queue-Circular Array Search

Best/Worst: O(n)

13
New cards

Queue-LinkedList Enqueue

Best/Worst: O(1)

14
New cards

Queue-LinkedList Dequeue

Best/Worst: O(1)

15
New cards

Queue-LinkedList Front/Peek

Best/Worst: O(1)

16
New cards

Queue-LinkedList Search

Best/Worst: O(n)

17
New cards

BST Search

Best: O(log n). Worst: O(n)

18
New cards

BST Insert

Best: O(log n). Worst: O(n)

19
New cards

BST Delete

Best: O(log n). Worst: O(n)

20
New cards

Heap Insert

Best: O(1). Worst: O(log n)

21
New cards

Heap Delete min/max

Best: O(log n). Worst: O(log n)

22
New cards

Heap Peek min/max

Best/Worst: O(1)

23
New cards

Heap Search

Best: O(1). Worst: O(n)

24
New cards

Percolate Up/Down

Best: O(1). Worst: O(log n)

25
New cards

Floyd's BuildHeap Insert N items

O(N)

26
New cards

AVL Search, Insert, Delete

Best/Worst: O(log n)

27
New cards

AVL Traversal

Best/Worst: O(n)

28
New cards

decreaseKey/increaseKey

O(log n)