Save
Computer Science Paper 1
4.4 Theory of Computation
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Samuel Olaleye
Visit profile
Subdecks (2)
Regular Languages
Computer Science Paper 1 > 4.4 Theory of Computation
30 cards
Cards (51)
What 2 forms of complexity can a algorithm be measured in?
In terms of space and time complexity
View source
What is the ideal characteristic of an algorithm?
Runs
quickly
and uses little
space
View source
What are the types of graphs related to algorithm complexity?
Constant function
Logarithmic function
Linear function
Polynomial function
Exponential function
Factorial function
View source
What does Big O notation describe?
The complexity of an
algorithm
View source
What does Big O notation assume?
A
worst-case
scenario
View source
In Big O notation, what variable is commonly used to describe
input
?
n
View source
What is the Big O notation for linear time complexity?
O(n)
View source
How is the Big O notation simplified for the function n3 + 200n2 + 1000n + 25?
It is O(n3)
View source
What are the different complexities of algorithms in Big O notation?
Constant
: O(C)
Logarithmic
: O(
log2
(n))
Linear
: O(n)
Linear Logarithmic
: O(nlog(n))
Polynomial
: O(
n2
)
Polynomial: O(n3)
Exponential: O(2n)
Factorial
: O(n!)
View source
What is an example of a constant time complexity algorithm?
Determining if a number is
odd or even
View source
What is an example of a logarithmic time complexity algorithm?
Binary search
View source
What is an example of a linear time complexity algorithm?
Linear search
View source
What is an example of a polynomial time complexity algorithm?
Bubble sort
View source
What is an example of an exponential time complexity algorithm?
Recursively calculating
Fibonacci numbers
View source
What is an example of a factorial time complexity algorithm?
Travelers
problem
View source
What are the two types of algorithms based on computation limits?
Tractable
: solvable in a useful time
Intractable
: theoretically solvable but impractical
View source
What characterizes a tractable problem?
Can be solved within a
useful
period
View source
What characterizes an intractable problem?
Cannot be solved within a
useful period
View source
What is a heuristic method?
An
approximate
solution to a problem
View source
What is the Halting problem?
Determining if an
algorithm
will finish
View source
What does the Halting problem demonstrate?
Some problems cannot be solved by
computers
View source
See all 51 cards