AP CSP Algorithms

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Boolean condition

a decision in an algorithm based on either true or false

Natural language

a human language such as English, Spanish, German, etc.; as opposed to artificial terms used in programming languages

Iteration

a loop or repeated behavior in an algorithm; one of the three different types of algorithms

Solvable problem

a problem that can be solved exactly using an algorithm

Unsolvable problem

a problem that cannot be solved exactly using an algorithm

Linear search

a search algorithm that finds a target by looking at each item, one at a time, until the end of the set is reached or the target is found

Binary search

a search algorithm that finds a target in a sorted list by starting in the middle. If the target is less than than the middle term, the algorithm then looks at the middle of the lower half. The process of narrowing the search by halves continues until the target is found or until it is determined that the target does not exist in the list.

Algorithm

a step-by-step set of instructions implemented by a program to develop and express solutions to a computational problem

Reasonable time

a way to analyze an algorithm in terms of the number of steps required to solve a problem; an algorithm is given this designation if the number of steps the algorithm takes is less than or equal to a polynomial function of the size of the set.

Heuristic solution

algorithmic approach applied to improve an algorithm that is based on finding solutions among all available options using a general set of rules; may result in approximate solutions instead of exact solutions; may be helpful to find solutions in reasonable time; may be helpful to find approximate solutions to unsolvable problems

Empirical analysis

an evidence-based approach to the study and interpretation of information

Sequencing

ordering the steps of an algorithm; one of three different types of algorithms

Decidable problem

problem in which an algorithm can be constructed to answer "yes" or "no" for all inputs

Undecidable problem

problem in which no algorithms can be constructed to answer "yes" or "no" for all inputs

Run Time

the period during which a computer program is executing

Selection

using a condition to to control the logical path taken by an algorithm; one of three different types of algorithms

Pseudo code

words used to organize thoughts to help plan writing code; helps programmers translate specifications into code


Set pelajaran terkait

( 3 ) Task Environment, General Environment, & Ethics

View Set

Lesson 3: Article 1 of the U.S Constitution

View Set

Taylor's Chapter 14: Implementing (Prep U)

View Set

Anatomy Ch. 25- The Urinary System

View Set

Energy Flow in Ecosystems & Organisms

View Set

Fundamentals of Nursing Ch. 4- NCLEX PRACTICE

View Set