algorithms Flashcards

(11 cards)

1
Q

what is pseudocode?

A

a way of clearly showing a programs’ steps without writing in a programming language to make it easier to understand

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

what goes into rounded rectangles in a flow chart?

A

start/stop

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

what goes into parallelogram boxes in a flow chart?

A

inputs/outputs

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

what goes into rectangles in a flow chart?

A

1processes

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

what go into diamond boxes in a flow chart?

A

decisions

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

what is a binary search?

A

a search algorithm that finds an item in an ordered list

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

what is the formula for a binary search?

A

(n+1)/2

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

what is a linear search?

A

a search algorithm that finds an item in an unordered list

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

what is a bubble sort?

A

sorts an unordered list of items
compares pairs

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

what is a merge sort?

A

sorts an unordered list of items
halfs the list repeatedly then orders it

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

what is an insertion sort?

A

puts each item in the right place and uses the first item as a starting point

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