LinkedIn Quiz Flashcards
An algorithm that is deterministic does what?
always produces the same output from a given set of inputs
An algorithm that takes 8x longer to operate on a data set that is 2x as large is said to be _____ in time.
cubic
Which classifications apply to Euclid’s algorithm for finding the least common denominator?
exact and deterministic
Which algorithm type derives a new set of data from an existing set of data?
a computational algorithm
A _________ algorithm uses calculations to derive and output new data from another set of input data.
computational
The order of operation is the time scale to perform an algorithmic operation and is indicated by _____ notation.
Big-O
The measurement of algorithm performance is dependent on which criteria?
the input data
What is the purpose of an algorithm?
to solve a specific problem with a sequential set of steps
calculate item index = O(__)
1
insert or delete item at the beginning = O(___)
n
insert or delete item in the middle = O(___)
n
insert or delete item in the end = O(__)
1
______ is when a function calls itself
recursion
Given that it is faster to search ordered lists, what is the downside of using them?
they are more time consuming to create and maintain than unordered lists
Why does a test for ordering require an algorithm that is linear in time complexity?
it must test every element