Classification Of Algorithms Flashcards
(13 cards)
What has to be allocated to algorithms
Time and space
Time complexity of a
Binary search
O Log(n)
Time complexity of a
Linear search
O (n)
Time complexity of a
Bubble sort
O (n)^2
Time complexity of a
Merge sort
O (nlog(n))
Time complexity for exonential
O a^n
What is set of possible inputs for a function
Domain
What is all the possible outcomes of a function
Range
What is a function
Mapping that maps the set of inputs onto the set of outputs.
What are Hueristics
A rule of thumb that allows a goal to be achieved. It gives a rough value but not exact answer
When is a problem computable
If it can be solved using an algorithm.
If not is is Non computable. Can’t be solved from an algorithm
What is the halting problem
Given a program and the inputs of the program. Determine if it will halt or not depending on the inputs.
What is the co-domain
It is the possible outputs of a function.