Final Flashcards

1
Q

Unsorted Array search

A

O(N)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Unsorted Array insert

A

O(1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Unsorted Array del

A

O(1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Unsorted Array mem

A

Wasteful

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Sorted Array search

A

O(logN)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Sorted Array insert

A

O(N)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Sorted Array del

A

O(N)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Sorted Array mem

A

Wasteful

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Sorted LL search

A

O(N)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Sorted LL insert

A

O(N)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Sorted LL del

A

O(1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Sorted LL mem

A

Efficient

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Bal BST search

A

O(logN)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Bal BST insert

A

O(logN)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Bal BST del

A

O(logN)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Bal BST mem

A

Efficient

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

LL Push

A

O(1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

LL Pop

A

O(1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

AL Push

A

O(N)/O(1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

AL Pop

A

O(N)/O(1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

AL Enq

A

O(N)/O(1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

AL Deq

A

O(N)/O(N)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

LL Enq

A

O(1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

LL Deq

A

O(1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

AL circular Enq

26
Q

AL circular Deq

27
Q

Heap insert

A

O(N)/O(logN)

28
Q

Heap search

29
Q

Heap delete

A

O(N)/O(logN)

30
Q

Heap enq

A

O(N)/O(logN)

31
Q

Heap deq

A

O(N)/O(logN)

32
Q

Heap build

33
Q

Bal Bst insert

34
Q

Bal BST search

35
Q

Bal BST del

36
Q

Bal BST enq

37
Q

Bal BST deq

38
Q

Bal BST build

39
Q

Hash insert

40
Q

Hash search

41
Q

Hash del

42
Q

Hash enq

43
Q

Hash deq

44
Q

Hash build

45
Q

Selection sort worst

46
Q

Selection sort best

47
Q

Selection sort average

48
Q

Selection sort space

49
Q

Bubble sort worst

50
Q

Bubble sort best

51
Q

Bubble sort average

52
Q

Bubble sort space

53
Q

Quicksort worst

54
Q

Quicksort best

55
Q

Quicksort average

56
Q

Quicksort space

57
Q

Heapsort worst

58
Q

Heapsort best

59
Q

Heapsort average

60
Q

Heapsort space

61
Q

Dijkstra’s complexity

A

O(M log N) (edges)