2.3 algorithms Flashcards

1
Q

linear search

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

binary search

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

bubble sort

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

insertion sort

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

merge sort

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

quick sort

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

dijkstra’s

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

A*

A

-uses heuristic

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

in-order traversal

A

LNR

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

post-order traversal

A

LRN
-aka depth first traversal

-useful for operations with calculations (involving with brackets)

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

pre-order traversal

A

NLR
-explore the closest solution to the root layer

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

breadth-first traversal

A

parent layer then the children layer

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

graphs

A

components of graph:
-edges and arcs
-nodes and vertices
-weigh

types of graph:
-simple
-connected
-complete
-directed : unidirectional/bidirectional

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

trees

A

-parent and children
-considered a type of simply connected graph

-binary tree : only have 0/1/2 children for every parent node

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