FINAL EXAM ESSENTIALS ONLY MEMORIZATION

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

1/50

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.

51 Terms

1
New cards

Big O definition

The upper bound on time or space as input grows

2
New cards

O(1)

Constant time

3
New cards

O(n)

Linear time

4
New cards

O(n log n)

Efficient sorting complexity (merge and quick average)

5
New cards

O(log n)

Logarithmic time (binary search)

6
New cards

Binary search complexity

O(log n)

7
New cards

Array indexing

O(1)

8
New cards

Array insert/delete

O(n)

9
New cards

Vector push_back amortized

O(1)

10
New cards

Vector resize

O(n)

11
New cards

Linked list insert head

O(1)

12
New cards

Linked list search

O(n)

13
New cards

Stack push/pop

O(1)

14
New cards

Queue enqueue/dequeue

O(1)

15
New cards

Tree traversal complexity

O(n)

16
New cards

Preorder traversal

Root, Left, Right

17
New cards

Inorder traversal

Left, Root, Right

18
New cards

Postorder traversal

Left, Right, Root

19
New cards

Level order traversal

Uses queue

20
New cards

BST property

Left < root < right

21
New cards

BST search avg

O(log n)

22
New cards

BST search worst

O(n)

23
New cards

Heap insert

O(log n)

24
New cards

Heap remove-min

O(log n)

25
New cards

Heap find-min

O(1)

26
New cards

Hash table average search

O(1)

27
New cards

Hash table worst-case

O(n)

28
New cards

Collision handling methods

Chaining, open addressing

29
New cards

Load factor

Number of elements / table size

30
New cards

BFS uses

Queue

31
New cards

DFS uses

Stack or recursion

32
New cards

BFS complexity

O(V + E)

33
New cards

DFS complexity

O(V + E)

34
New cards

Bubble sort

O(n^2)

35
New cards

Selection sort

O(n^2)

36
New cards

Insertion sort

O(n^2)

37
New cards

Merge sort

O(n log n)

38
New cards

Quick sort avg

O(n log n)

39
New cards

Quick sort worst

O(n^2)

40
New cards

Pointer definition

Variable storing a memory address

41
New cards

new operator

Allocates dynamic memory

42
New cards

delete operator

Releases dynamic memory

43
New cards

Dangling pointer

Pointer to freed memory

44
New cards

nullptr

Represents empty pointer safely

45
New cards

ADT definition

Abstract Data Type

46
New cards

Complete binary tree

Levels filled left to right

47
New cards

Full binary tree

Nodes have 0 or 2 children

48
New cards

Queue definition

FIFO

49
New cards

Stack definition

LIFO

50
New cards

Graph adjacency list

List of neighbors per vertex

51
New cards

Graph adjacency matrix

VxV grid of edges

Explore top flashcards