unit 10- algorithms Flashcards

1
Q

What are the 4 ways algorithms are considered the same?

A

Algorithms that have the same outcome
Algorithms that use the same set of commands
Algorithms that store information the same way (use lists vs. variables)
Algorithms that are written using the same structure (AP Pseudocode vs. flowcharts vs. human language)

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

problem

A

a general description of a task that can (or cannot) be solved with an algorithm

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

Algorithm

A

a finite set of instructions that accomplish a task.

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

what are the three steps that can be used to write an algorithm?

A

sequencing, selection, and iteration

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

sequencing

A

putting steps in an order

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

Selection (Conditionals)

A

deciding which steps to do next

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

iteration (Loops)

A

Doing some steps over and over

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

Linear Search

A

Linear Search: a search algorithm which checks each element of a list, in order, until the desired value is found or all elements in the list have been checked.

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

binary search

A

a search algorithm that starts at the middle of a sorted set of numbers and removes half of the data; this process repeats until the desired value is found or all elements have been eliminated.

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

Worst-Case Scenario:

A

he least amount of steps to be sure you have solved the problem (in these examples, the worst case scenario is that there was no winning ticket)

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