theory of computation Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

define the halting problem

A

-the impossible creation of a program which can conclude whether or not a program will halt given its inputs and description without executing the program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what does the halting problem show

A

it shows that there are some problems which simply cannot be solved by computers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is an algorithm

A

A sequence of steps that can be followed to complete a task and that always terminates.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

who proved the halting program could not be done

A

Alan Turing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what did proving the halting program couldn’t be done show

A

this dispelled the belief that hardware was the only limit to algorithms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

define space complexity

A

a measure of the amount of memory space needed by an algorithm to solve a particular problem of given input size

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

define time complexity

A

a measure of the amount of time needed by an algorithm to solve a particular problem of a given input size

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is constant time/space

A

O(1)

an algorithm that always takes a constant amount if time or memory space to execute regardless of the input size

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what is exponential time/space

A

O(2^n)

an algorithm whose execution time or required memory space grows exponentially with the input size

intractable- cannot be solved in a useful amount of time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is the logarithmic time/space

A

O(log(n))

an algorithm whose execution time or required memory space grows logarithmically with input size

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what is linear time/space

A

O(n)

an algorithm whose execution time or required memory space is directionally proportional to the size of its input

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what is polynomial time/space

A

O(n^k)

an algorithm whose execution time or required memory space is proportional to the input size raised to the power of a constant(k)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

order of complexity

A
constant
logarithmic
linear
polynomial
exponential
How well did you know this?
1
Not at all
2
3
4
5
Perfectly