Amazon Algorithms Flashcards
All algorithms solve a _______.
problem
_________ are little more than a series of step by step instructions.
algorithms
The essence of a really good algorithm is _________.
mathematics
The best algorithms are those that tap into the _______ mathematical structure hiding beneath a problem.
underlying
Algorithms are extremely old; they _______ computers by thousands of years.
predate
The _____ algorithm we know of was devised to solve a mathematical problem.
oldest
The oldest algorithm we know of was first written down by the ancient Greek mathematician ____.
Euclid
Euclid’s algorithm is a method for finding the greatest common _____.
divisor
The greatest common divisor is the largest number that will divide into a pair of other numbers without leaving a _______. For ex., 4 divides in both 8 and 12 without a ______.
remainder remainder
What are the 3 criteria that all algorithms have?
a precisely stated set of instructions, a procedure that always finishes, can be proven to work in all cases of the problem its solving
An algorithm is a _______ stated set of instructions.
precisely
The procedure of an algorithm always ______.
finishes
An algorithm must be ______ to work in all cases of the problem it’s solving.
proven
________ an algorithm requires creativity and genius but using them is just a matter of following instructions.
inventing
Computer code is basically making an algorithm _______; the algorithm is the _____ for how you would solve the problem, the rough instructions that you would use, and that can be translated into particular code.
specific idea
Some of the most important algorithms are ______ algorithms.
sorting
Sorting algorithms put things in _____. For ex., on the internet information gets broken down into packets of data, which then get sent across the web. To reassemble that data, sorting algorithms are absolutely crucial to putting this data back in the ______ _____ so that we can view the picture or read the email we’ve just been sent.
order correct order
There are over __ different types of sorting algorithms (Bubble sort, Merge sort, Insertion sort, Heap sort, Quick sort, Time sort, Gnome sort, Pigeonhole sort or Radix sort, Bogosort, etc); they all achieve the same result by _________ means.
20 different
Each sorting algorithm has its ____ and ____; which one to use often depends on the ________ of the problem.
pros cons specifics
______ websites use a matching algorithm.
dating
The ______ ______ algorithm (also known as the stable marriage algorithm) is a _________ algorithm and is being used all over the world for things like matching children to day care places, or students to schools, or to allocate rabbis to synagogues.
Gayle Shapley matching
In the UK a ______ algorithm is used to match organ donors and recipients.
matching
The important features of a good algorithm is it being fast and correct; ______!
efficient
It’s a common ___________ that algorithms can do anything; some problems simply ______ be solved by efficient algorithms.
misconception cannot