wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

The Limits of Computing

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

A problem that cannot be solved within a reasonable amount of time

a)

Intractable

b)

Tractable

2.

Tractable problems can be solved within a reasonable amount of time

a)

True

b)

False

3.

A heuristic approach will find the optimal solution

a)

True

b)

False

4.

Which concept is used to show whether a problem is computable or not?

a)

A*

b)

Heuristics

c)

Halting

d)

Intractable

5.

It is possible to create an algorithm to solve the Halting Problem

a)

True

b)

False

6.

What is meant when we say a program has halted?

a)

Run to completion

b)

Crashed

c)

Broken

7.

Which of the following time complexities can be classed as intractable?

a)

O (n)

b)

O (n2)

c)

O (2n)

d)

O (n!)

8.

Select all time complexities that would be classed as tractable

a)

Constant

b)

Logarithmic

c)

Factorial

d)

Polynomial

e)

Exponential

9.

Identify the correct description for a problem with complexity of O (n3)

a)

Tractable

b)

Intractable

c)

Non-Computable

10.

Some problems are and always will be non-computable

a)

True

b)

False

11.

Select the string that is NOT matched by the regular expression:

ab?c*d

a)

abcbcbcbcd

b)

acd

c)

ad

d)

acccd

12.

Which regular expression matches the FSM?

a)

ab|cb+

b)

(a|b)+cb*

c)

(a|cb+)+

d)

a?c|b*

13.

Symbol used to represent zero or one of the preceding tokens

a)

?

b)

*

c)

^

d)

+

14.

Which symbol Indicates that there are zero or one of the preceding element i.e. optional character

a)

|

b)

*

c)

+

d)

?

e)

()

15.

In this FSM how many inputs are there?

a)

4

b)

2

c)

1

d)

3

16.

In this FSM which is the Accept State

a)

S1

b)

S2

c)

0

d)

1

17.

When the state is S2 if the input is 0

a)

The machine will remain in the state S2

b)

The machine will malfunction

c)

0 is not a valid input

d)

The machine will change state to S1

18.

Starting at state S1 what state would input 'acd' change to

a)

S1

b)

S3

c)

S4

d)

S2

19.

What state will the machine rest in with an input of 'aabacda'

a)

S4

b)

S3

c)

S2

d)

S1

20.

Final Question, what is the minimum accepted input of this Finite State Machine

a)

acdb

b)

abc

c)

ac

d)

ad