ArticleslgStudy

biology

Generic-case complexity

Generic-case complexity is a biology 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 Generic-case complexity rather than just read about it. In short: Generic-case complexity is a subfield of computational complexity theory that studies the complexity of computational problems on "most inputs". Generic-case complexity is a way of measuring the complexity of a computational problem by neglecting a small set of unrepresentative inputs and considering worst-case complexity on the rest.

Key takeaways

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

Reference excerpt

Generic-case complexity is a subfield of computational complexity theory that studies the complexity of computational problems on "most inputs". Generic-case complexity is a way of measuring the complexity of a computational problem by neglecting a small set of unrepresentative inputs and considering worst-case complexity on the rest. Small is defined in terms of asymptotic density. The apparent efficacy of generic case complexity is because for a wide variety of concrete computational problems, the most difficult instances seem to be rare. Typical instances are relatively easy. This approach to complexity originated in combinatorial group theory, which has a computational tradition going back to the beginning of the last century. The notion of generic complexity was introduced in a 2003 paper, where authors showed that for a large class of finitely generated groups the generic time complexity of some classical decision problems from combinatorial group theory, namely the word problem, conjugacy problem and membership problem, are linear. A detailed introduction of generic case complexity can be found in the surveys.

Basic definitions

Asymptotic density Let I be an infinite set of inputs for a computational problem. Definition 1. A size function on I is a map σ:I→ℕ with infinite range. The ball of radius n is Bn={x∈I∣σ(x)≤n}. If the inputs are coded as strings over a finite alphabet, size might be the string length. Let {μn} be an ensemble of probability distributions where μn is a probability distribution on Bn. If the balls Bn are finite, then each μn can be taken to be the equiprobable distribution which is the most common case. Notice that only finitely many Bn's can be empty or have μn(Bn)=0; we ignore them. Definition 2. The asymptotic density of a subset X⊂I is ρ(X)=limn→∞μn(X∩Bn) when this limit exists. When the balls Bn are finite and μn is the equiprobable measure,

ρ(X)=lim⁡|X∩Bn||Bn|. In this case it is often convenient to use spheres In={x∈I∣σ(x)=n} instead of balls and define ρ′(X)=lim⁡|X∩In||In|. An argument using Stolz theorem shows that ρ(X) exists if ρ′(X) does, and in that case they are equal. Definition 3 X⊆I is generic if ρ(X)=1 and negligible if ρ(X)=0. X is exponentially (superpolynomially) generic if the convergence to the limit in Definition 2 is exponentially (superpolynomially) fast, etc. A generic subset X is asymptotically large. Whether X appears large in practice depends on how fast μn(X∩Bn) converges to 1. Superpolynomial convergence seems to be fast enough.

Generic complexity classes Definition 4 An algorithm is in GenP (generically polynomial time) if it never gives incorrect answers and if it gives correct answers in polynomial time on a generic set of inputs. A problem is in GenP if it admits an algorithm in GenP. Likewise for GenL (generically linear time), GenE (generically exponential time with a linear exponent) GenExp (generically exponential time), etc. ExpGenP is the subclass of GenP for which the relevant generic set is exponentially generic. More generally for any f:ℕ→ℕ we can define the class Gen(f) corresponding to time complexity O(f) on a generic set of input. Definition 5. An algorithm solves a problem generically if it never gives incorrect answers and if it gives correct answers on a generic set of inputs. A problem is generically solvable if it is solved generically by some algorithm.

Theory and applications

Combinatorial group theory problems The famous undecidable problems: under suitable hypotheses, the word, conjugacy and membership decision problems are in generically polynomial. The word and conjugacy search problems are in GenP for all fixed finitely presented groups. The well known coset enumeration procedure admits a computable upper bound on a generic set of inputs. The Whitehead algorithm for testing whether or not one element of a free group is mapped to another by an automorphism has an exponential worst case upper bound but runs well in practice. The algorithm is shown to be in GenL. The conjugacy problem in HNN extensions can be unsolvable even for free groups. However, it is generically cubic time.

The halting problem and the Post correspondence problem The halting problem for Turing machine with one-sided tape is easily decidable most of the time; it is in GenP The situation for two-sided tape is unknown. However, there is a kind of lower bound for machines of both types. The halting problem is not in ExpGenP for any model of Turing machine,

The Post correspondence problem is in ExpGenP.

Presburger arithmetic The decision problem for Presburger arithmetic admits a double exponential worst case lower bound and a triple exponential worst case upper bound. The generic complexity is not known, but it is known that the problem is not in ExpGenP.

NP complete problems As it is well known that NP-complete problems can be easy on average, it is not a surprise that several of them are generically easy too.

The three satisfiability problem is in ExpGenP. The subset sum problem is in GenP.

One way functions There is a generic complexity version of a one-way function which yields the same class of functions but allows one to consider different security assumptions than usual.

Public-key cryptography A series of articles is devoted to cryptanalysis of the Anshel–Anshel–Goldfeld key exchange protocol, whose security is based on assumptions about the braid group. This series culminates in Miasnikov and Ushakov (2008) which applies techniques from generic case complexity to obtain a complete analysis of the length based attack and the conditions under which it works. The generic point of view also suggests a kind of new attack called the quotient attack, and a more secure version of the Anshel–Anshel–Goldfeld protocol.

List of general theoretical results A famous Rice's theorem states that if F is a subset of the set of partial computable functions from ℕ to {0,1}, then unless F or its complement is empty, the problem of deciding whether or not a particular Turing machine computes a function in F is undecidable. The following theorem gives a generic version. Theorem 1 Let I be the set of all Turing machines. If F is a subset of the set of all partial computable function from ℕ to itself such that F and its complement are both non-empty, then the problem of deciding whether or not a given Turing machine computes a function from F is not decidable on any exponentially generic subset of I.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Generic-case complexity

Start with the simplest possible case. Write down what Generic-case complexity claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In biology, 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 Generic-case complexity 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 Generic-case complexity 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 Generic-case complexity

In research
Generic-case complexity appears in biology 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 Generic-case complexity 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
Generic-case complexity is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational complexity theory, so understanding it makes those chapters shorter.
In everyday life
Look for Generic-case complexity 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.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Generic-case complexity” →

How to study Generic-case complexity in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Generic-case complexity 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 Generic-case complexity out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Generic-case complexity in simple terms?

Generic-case complexity is a subfield of computational complexity theory that studies the complexity of computational problems on "most inputs". Generic-case complexity is a way of measuring the complexity of a computational problem by neglecting a small set of unrepresentative inputs and consideri…

Why does Generic-case complexity matter?

Because it connects several biology 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 Generic-case complexity?

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 Generic-case complexity.

Tags

  • Computational complexity theory

Keep exploring