Big idea 3: Algorithms and programming Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

sequencing

A

The sequential execution of steps in an algorithm or code in a program

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

selection

A

A Boolean condition to determine which of two paths are taken in an algorithm or program.

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

iteration

A

The repetition of steps in an algorithm or program for a certain amount of times or until a certain condition is met.

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

linear search

A

An algorithm that iterates through each item in a list until it finds the target value.

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

binary search

A

An algorithm that searches a sorted list for a value by repeatedly splitting the list in half.

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

reasonable time

A

A run time for an algorithm that doesn’t increase faster than a polynomial function of the input size(like 10n, n^2). An unreasonable run time would increase super polynomially (like 2^n, n!).

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

heuristic

A

A technique that helps an algorithm find a good solution in a hard problem (like always walking toward the north star when you are stuck in a forest).

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

undecidable

A

A problem that is so logically difficult, we can’t ever create an algorithm that would be able to answer “yes or “no” for all inputs (like the halting problem).

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

library

A

A collection of procedures that are useful in creating programs.

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

API

A

Application Programming Interface, a library of procedures and a description of how to call each procedure.

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

modularity

A

The separation of a program into independent modules that are each responsible for one aspect of the program’s functionality.

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