levo

Theory of Computation

Limits of computation, tractability and heuristics

  • 2 things to know
  • Paper 1
Start revising · £5/month

Overview

Recall questions on tractable and intractable problems, why intractable does not mean impossible, and why heuristics are used when no efficient algorithm exists.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Process

Why does a faster computer not solve the problem of intractability?

Key term

Why are heuristic methods often used when tackling intractable problems?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What two things impose limits on what can be computed?

    Model answer

    Algorithmic complexity and hardware. Complexity limits what can be computed in a sensible time because an algorithm whose work grows exponentially becomes impossible to finish however it is coded. Hardware limits because any real machine has a finite processor speed, a finite amount of memory and a finite amount of storage, and the user has a finite amount of time to wait.

  2. 2

    If a computer were made a thousand times faster, which limits would disappear and which would not?

    Model answer

    The hardware limit is eased but not removed: a thousand-fold speed-up multiplies the size of problem you can handle in a given time by a thousand for a linear algorithm, but only lets an O(2ⁿ) algorithm handle about ten more items, since 2¹⁰ is roughly a thousand. The limit imposed by algorithmic complexity therefore survives any realistic improvement in hardware, and problems that cannot be solved algorithmically at all are unaffected by speed entirely.

  3. 3

    Define a tractable problem.

    Model answer

    A tractable problem is one that has a polynomial (or less) time solution — an algorithm whose running time grows no faster than some fixed power of the problem size, such as O(n), O(n log n) or O(n²).

  4. 4

    Define an intractable problem.

    Model answer

    An intractable problem is one that has no polynomial (or less) time solution. The only known algorithms that solve it exactly take exponential time or worse, so the running time becomes impossibly long as the size of the problem grows even modestly.

  5. 5

    Does intractable mean the same as impossible? Explain.

    Model answer

    Intractable does not mean the same as impossible. An intractable problem can be solved — an algorithm exists and would give the right answer if it were allowed to finish — but only in a length of time that makes it useless for anything but very small inputs. This is quite different from a non-computable problem, for which no algorithm exists at all, however long it is given.

  6. 6

    Give two examples of intractable problems and say why they are hard.

    Model answer

    Finding the shortest tour that visits every city once and returns to the start: checking every possible order of n cities means examining n! tours, and n! grows faster than any polynomial. Packing items of different sizes into the fewest possible bins: the number of ways of dividing the items between bins grows exponentially with the number of items. In both cases the difficulty is that the number of candidate solutions to check explodes as the problem grows, and no method is known that avoids checking them.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Fundamentals of Programming
Fundamentals of Data Structures
Fundamentals of Algorithms
Theory of Computation

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

A driver is .
softwarehardwarestorage

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

Head means the first single element of a non-empty list.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Theory of Computation, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.