Unit 6 - Algorithms Flashcards
Problem
A general description of a task that can or cannot be solved with an algorithm
Algorithm
A finite set of instructions that accomplish a task
Sequencing
Putting steps in an order
Selection
Deciding which steps to do next
Iteration
Doing some steps over and over
Efficiency
A measure of how many steps are needed to complete an algorithm
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
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
Reasonable Time
Algorithms with a polynomial efficiency or lower (constant, linear, square, cube, etc.) are said to run in a reasonable amount of time
Unreasonable Time
Algorithms with exponential or factorial efficiencies are examples of algorithms that run in an unreasonable amount of time
Parallel computing
A model in which programs are broken into small pieces, some of which are run simultaneously