Big-O Algorithms Time Complexity

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/35

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

36 Terms

1
New cards

array average access

array worst access

O(1)

O(1)

2
New cards

array average search

array worst search

O(n)

O(n)

3
New cards

array average insertion

array worst insertion

O(n)

O(n)

4
New cards

array average deletion

array worst deletion

O(n)

O(n)

5
New cards

array space complexity worst

O(n)

6
New cards

stack average access

stack worst access

O(n)

O(n)

7
New cards

stack average search

stack worst search

O(n)

O(n)

8
New cards

stack average insertion

stack worst insertion

O(1)

O(1)

9
New cards

stack average deletion

stack worst deletion

O(1)

O(1)

10
New cards

stack worst space complexity

O(n)

11
New cards

linked list average access

linked list worst access

O(n)

O(n)

12
New cards

linked list average insertion

linked list worst insertion

O(1)

O(1)

13
New cards

linked list average deletion

linked list worst deletion

O(1)

O(1)

14
New cards

linked list average search

linked list worst search

O(n)

O(n)

15
New cards

linked list worst space complexity

O(n)

16
New cards

hash table average access

hash table worst access

(not specified)

(not said for this either. look up?)

17
New cards

hash table average search

hash table worst search

O(1)

O(n)

18
New cards

hash table average insertion

hash table worst insertion

O(1)

O(n)

19
New cards

hash table average deletion

hash table worst deletion

O(1)

O(n)

20
New cards

hash table worst space complexity

O(n)

21
New cards

binary search tree average access

binary search tree worst access

O(log(n))

O(n)

22
New cards

binary search tree average search

binary search tree worst search

O(log(n))

O(n)

23
New cards

binary search tree average insertion

binary search tree worst insertion

O(log(n))

O(n)

24
New cards

binary search tree average deletion

binary search tree worst deletion

O(log(n))

O(n)

25
New cards

binary search tree worst space complexity

O(n)

26
New cards

quicksort best time complexity

quicksort average time complexity

quicksort worst time complexity

O(n log(n))

O(n log(n))

O(n^2)

27
New cards

quicksort worst space complexity

O(log(n))

28
New cards

mergesort best time complexity

mergesort average time complexity

mergesort worst time complexity

O(n log(n))

O(n log(n))

O(n log(n))

29
New cards

mergesort worst space complexity

O(n)

30
New cards

insertion sort best time complexity

insertion sort average time complexity

insertion sort worst time complexity

O(n)

O(n^2)

O(n^2)

31
New cards

insertion sort worst space complexity

O(1)

32
New cards

selection sort best time complexity

selection sort average time complexity

selection sort worst time complexity

O(n^2)

O(n^2)

O(n^2)

33
New cards

selection sort worst space complexity

O(1)

34
New cards

linked list (sorted) Find Max

linked list (sorted) Extract Max

linked list (sorted) Increase Key

linked list (sorted) Insert

linked list (sorted) Delete

linked list (sorted) Merge

O(1)

O(1)

O(n)

O(n)

O(1)

O(m+n)

35
New cards

linked list (unsorted) Find Max

linked list (unsorted) Extract Max

linked list (unsorted) Increase Key

linked list (unsorted) Insert

linked list (unsorted) Delete

linked list (unsorted) Merge

O(n)

O(n)

O(1)

O(1)

O(1)

O(1)

36
New cards

min/max heap Find Max

min/max heap Extract Max

min/max heap Increase Key

min/max heap Insert

min/max heap Delete

min/max heap Merge

O(1)

O(log(n))

O(log(n))

O(log(n))

O(log(n))

O(m+n)