ArticleslgStudy

science

TFNP

TFNP is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand TFNP rather than just read about it. In short: In computational complexity theory, the complexity class TFNP is the class of total function problems that can be solved in nondeterministic polynomial time. That is, it is the class of function problems that are guaranteed to have an answer, and this answer can be checked in polynomial time, or equivalently it is the subset of FNP where a solution is guaranteed to exist.

TFNP — main illustration
TFNP — illustration

Key takeaways

  • TFNP belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect TFNP to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of TFNP from memory before moving on to harder problems.

Reference excerpt

In computational complexity theory, the complexity class TFNP is the class of total function problems that can be solved in nondeterministic polynomial time. That is, it is the class of function problems that are guaranteed to have an answer, and this answer can be checked in polynomial time, or equivalently it is the subset of FNP where a solution is guaranteed to exist. The abbreviation TFNP stands for "Total Function Nondeterministic Polynomial". TFNP contains many natural problems that are of interest to computer scientists. These problems include integer factorization, finding a Nash equilibrium of a game, and searching for local optima. TFNP is widely conjectured to contain problems that are computationally intractable, and several such problems have been shown to be hard under cryptographic assumptions. However, there are no known unconditional intractability results or results showing TFNP-hardness of TFNP problems. In fact, TFNP is believed not to have any complete problems.

Formal definition The class TFNP is formally defined as follows.

A binary relation P(x,y) is in TFNP if and only if there is a deterministic polynomial time algorithm that can determine whether P(x,y) holds given both x and y, and for every x, there exists a y that is at most polynomially longer than x such that P(x,y) holds. It was first defined by Megiddo and Papadimitriou in 1989, although TFNP problems and subclasses of TFNP had been defined and studied earlier.

Examples

Pigeonhole principle problem Input: A (polynomially computable) mapping f that maps a set of n + 1 items to a set of n items. Question: Find two items a and b such that f(a) = f(b). Let x be a mapping, and y a 2-tuple of items in its domain. The binary relation in question P(x,y) has the meaning "the images of both entries of y under x are equal", which, since the mapping is polynomially computable, is polynomially decidable. Moreover, such tuple y must exist for any mapping because of the pigeonhole principle.

Connections to other complexity classes

… excerpt ends here. Continue reading the full article.

Illustrations

TFNP: Diagram of inclusions between subclasses of TFNP. An arrow from class A to class B indicates A is a subset of B. All inclusions are believed to be strict, although none have been unconditionally proved to be strict.
Diagram of inclusions between subclasses of TFNP. An arrow from class A to class B indicates A is a subset of B. All inclusions are believed to be strict, although none have been unconditionally proved to be strict.

Worked examples

Example 1 — a first encounter with TFNP

Start with the simplest possible case. Write down what TFNP claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to TFNP before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about TFNP ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of TFNP

In research
TFNP appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses TFNP in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
TFNP is common in secondary-school and first-year university syllabi. It links to neighbouring topics Binary relations, Complexity classes, so understanding it makes those chapters shorter.
In everyday life
Look for TFNP outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study TFNP in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what TFNP means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain TFNP out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is TFNP in simple terms?

In computational complexity theory, the complexity class TFNP is the class of total function problems that can be solved in nondeterministic polynomial time. That is, it is the class of function problems that are guaranteed to have an answer, and this answer can be checked in polynomial time, or eq…

Why does TFNP matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study TFNP?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on TFNP.

Tags

  • Binary relations
  • Complexity classes

Keep exploring