CSP Course Vocabulary Algorithms Unit Vocabulary

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

1/16

flashcard set

Earn XP

Description and Tags

Flashcards for CSP Course Algorithms Unit Vocabulary

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

17 Terms

1
New cards

Problem

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

2
New cards

Algorithm

A finite set of instructions that accomplish a task.

3
New cards

Sequencing

Putting steps in an order.

4
New cards

Selection

Deciding which steps to do next.

5
New cards

Iteration

Doing some steps over and over

6
New cards

Efficiency

A measure of how many steps are needed to complete an algorithm

7
New cards

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.

8
New cards

Binary Search

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.

9
New cards

Reasonable Time

Algorithms with a polynomial efficiency or lower (constant, linear, square, cube, etc.) are said to run in a reasonable amount of time.

10
New cards

Unreasonable Time

Algorithms with exponential or factorial efficiencies are examples of algorithms that run in an unreasonable amount of time.

11
New cards

Heuristic

Provides a 'good enough' solution to a problem when an actual solution is impractical or impossible (because it takes too long)

12
New cards

Decision Problem

A problem with a yes/no answer (e.g., is there a path from A to B?)

13
New cards

Optimization Problem

A problem with the goal of finding the 'best' solution among many (e.g., what is the shortest path from A to B?)

14
New cards

Undecidable Problem

A problem for which no algorithm can be constructed that is always capable of providing a correct yes-or-no answer

15
New cards

Syntax Error

Error in the code's structure or grammar that prevents it from being parsed or compiled

16
New cards

Logic Error

Error in the reasoning or implementation of the code that causes it to produce incorrect results, even though it runs without crashing.

17
New cards

Runtime Error

Error that occurs during the execution of a program, often due to unexpected input or conditions, causing the program to crash or behave unpredictably.