CSP Unit 6

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

1/20

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.

21 Terms

1
New cards

iteration

the programming concept of using loops to repeat blocks of code

2
New cards

definite loop

a loop that runs a predetermined number of times

3
New cards

indefinite loop

a loop that runs until a condition is met

4
New cards

infinite loop

a loop in which the ending condition never evaluates to true.

5
New cards

list

ordered sequence of elements.

6
New cards

element

an individual value in a list that is assigned a unique index.

7
New cards

index

a common method for referencing the position of elements in a list or string using sequential natural numbers.

8
New cards

list traversal

traversal through a list means accessing every single element of a list

9
New cards

string concatenation

joining together two or more strings end-to-end to make a new string.

10
New cards

substring

part of an existing string

11
New cards

algorithm

a finite set of instructions that accomplish a specific task.

12
New cards

swap

to exchange two values

13
New cards

Linear search

algorithm that checks each element of a list, in order, until the desired value is found or all elements in the list have been checked. Also known as sequential search.

14
New cards

Efficiency

an estimation of the amount of computational resources used by an algorithm. Efficiency is typically expressed as a function of the size of the input.

15
New cards

Big O()

describes the performance or complexity of an algorithm. It can be used to describe the execution time required or the space used (e.g. in memory or on disk) by an algorithm.

16
New cards

binary search

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

17
New cards

problem

a general description of a task that can (or cannot) be solved algorithmically.

18
New cards

Efficiency

an estimation of the amount of computational resources used by an algorithm.

19
New cards

reasonable time

term for run time of algorithms with a polynomial efficiency or lower (constant, linear, square, cube, etc.)

20
New cards

unreasonable time

term for run time of algorithms with exponential or factorial efficiencies

21
New cards

Sequential computing

a computational model in which operations are performed in order one at a time.