ArticleslgStudy

computer science

ITP method

ITP method is a computer 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 ITP method rather than just read about it. In short: In numerical analysis, the ITP method (Interpolate Truncate and Project method) is the first root-finding algorithm that achieves the superlinear convergence of the secant method while retaining the optimal worst-case performance of the bisection method. It is also the first method with guaranteed average performance strictly better than the bisection method under any continuous distribution.

ITP method — main illustration
ITP method — illustration

Key takeaways

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

Reference excerpt

In numerical analysis, the ITP method (Interpolate Truncate and Project method) is the first root-finding algorithm that achieves the superlinear convergence of the secant method while retaining the optimal worst-case performance of the bisection method. It is also the first method with guaranteed average performance strictly better than the bisection method under any continuous distribution. In practice it performs better than traditional interpolation and hybrid based strategies (Brent's Method, Ridders, Illinois), since it not only converges super-linearly over well behaved functions but also guarantees fast performance under ill-behaved functions where interpolations fail. The ITP method follows the same structure of standard bracketing strategies that keeps track of upper and lower bounds for the location of the root; but it also keeps track of the region where worst-case performance is kept upper-bounded. As a bracketing strategy, in each iteration the ITP queries the value of the function on one point and discards the part of the interval between two points where the function value shares the same sign. The queried point is calculated with three steps: it interpolates finding the regula falsi estimate, then it perturbs/truncates the estimate (similar to Regula falsi § Improvements in regula falsi) and then projects the perturbed estimate onto an interval in the neighbourhood of the bisection midpoint. The neighbourhood around the bisection point is calculated in each iteration in order to guarantee minmax optimality (Theorem 2.1 of ). The method depends on three hyper-parameters κ1∈(0,∞),κ2∈[1,1+ϕ) and n0∈[0,∞) where ϕ is the golden ratio 12(1+5): the first two control the size of the truncation and the third is a slack variable that controls the size of the interval for the projection step.

Root finding problem Given a continuous function f defined from [a,b] to ℝ such that f(a)f(b)≤0, where at the cost of one query one can access the values of f(x) on any given x. And, given a pre-specified target precision ϵ>0, a root-finding algorithm is designed to solve the following problem with the least amount of queries as possible: Problem Definition: Find x̂ such that |x̂−x∗|≤ϵ, where x∗ satisfies f(x∗)=0. This problem is very common in numerical analysis, computer science and engineering; and, root-finding algorithms are the standard approach to solve it. Often, the root-finding procedure is called by more complex parent algorithms within a larger context, and, for this reason solving root problems efficiently is of extreme importance since an inefficient approach might come at a high computational cost when the larger context is taken into account. This is what the ITP method attempts to do by simultaneously exploiting interpolation guarantees as well as minmax optimal guarantees of the bisection method that terminates in at most n1/2≡⌈log2((b0−a0)/2ϵ)⌉ iterations when initiated on an interval [a0,b0].

The method Given κ1∈(0,∞),κ2∈[1,1+ϕ), n1/2≡⌈log2((b0−a0)/2ϵ)⌉ and n0∈[0,∞) where ϕ is the golden ratio 12(1+5), in each iteration j=0,1,2… the ITP method calculates the point xITP following three steps:

[Interpolation Step] Calculate the bisection and the regula falsi points: x1/2≡a+b2 and xf≡bf(a)−af(b)f(a)−f(b) ; [Truncation Step] Perturb the estimator towards the center: xt≡xf+σδ where σ≡sign(x1/2−xf) and δ≡min⁡{κ1|b−a|κ2,|x1/2−xf|} ; [Projection Step] Project the estimator to minmax interval: xITP≡x1/2−σρk where ρk≡min⁡{ϵ2n1/2+n0−j−b−a2,|xt−x1/2|}. The value of the function f(xITP) on this point is queried, and the interval is then reduced to bracket the root by keeping the sub-interval with function values of opposite sign on each end.

The algorithm The following algorithm (written in pseudocode) assumes the initial values of ya and yb are given and satisfy ya<0<yb where ya≡f(a) and yb≡f(b); and, it returns an estimate x̂ that satisfies |x̂−x∗|≤ϵ in at most n1/2+n0 function evaluations.

Input: a,b,ϵ,κ1,κ2,n0,f Preprocessing: n1/2=⌈log2b−a2ϵ⌉, nmax=n1/2+n0, and j=0; While ( b−a>2ϵ ) Calculating Parameters: x1/2=a+b2, r=ϵ2nmax−j−(b−a)/2, δ=κ1(b−a)κ2; Interpolation: xf=yba−yabyb−ya; Truncation: σ=sign(x1/2−xf); If δ≤|x1/2−xf| then xt=xf+σδ, Else xt=x1/2; Projection: If |xt−x1/2|≤r then xITP=xt, Else xITP=x1/2−σr; Updating Interval: yITP=f(xITP); If yITP>0 then b=xITP and yb=yITP, Elseif yITP<0 then a=xITP and ya=yITP, Else a=xITP and b=xITP; j=j+1; Output: x̂=a+b2

Example: Finding the root of a polynomial Suppose that the ITP method is used to find a root of the polynomial f(x)=x3−x−2. Using ϵ=0.0005,κ1=0.1,κ2=2 and n0=1 we find that:

This example can be compared to Bisection method § Example: Finding the root of a polynomial. The ITP method required less than half the number of iterations than the bisection to obtain a more precise estimate of the root with no cost on the minmax guarantees. Other methods might also attain a similar speed of convergence (such as Ridders, Brent etc.) but without the minmax guarantees given by the ITP method.

Analysis The main advantage of the ITP method is that it is guaranteed to require no more iterations than the bisection method when n0=0. And so its average performance is guaranteed to be better than the bisection method even when interpolation fails. Furthermore, if interpolations do not fail (smooth functions), then it is guaranteed to enjoy the high order of convergence as interpolation based methods.

Worst case performance Because the ITP method projects the estimator onto the minmax interval with a n0 slack, it will require at most n1/2+n0 iterations (Theorem 2.1 of ). This is minmax optimal like the bisection method when n0 is chosen to be n0=0.

Average performance Because it does not take more than n1/2+n0 iterations, the average number of iterations will always be less than that of the bisection method for any distribution considered when n0=0 (Corollary 2.2 of ).

Asymptotic performance If the function f(x) is twice differentiable and the root x∗ is simple, then the intervals produced by the ITP method converges to 0 with an order of convergence of κ2 if n0≠0 or if n0=0 and (b−a)/ϵ is not a power of 2 with the term ϵ2n1/2b−a not too close to zero (Theorem 2.3 of ).

Software The itp contributed package in R.

… excerpt ends here. Continue reading the full article.

Illustrations

ITP method: Step 2 of the ITP method.
Step 2 of the ITP method.
ITP method: Step 3 of the ITP method.
Step 3 of the ITP method.
ITP method: All three steps combined form the ITP method. The thick blue line represents the "projected-truncated-interpolation" of the method.
All three steps combined form the ITP method. The thick blue line represents the "projected-truncated-interpolation" of the method.

Worked examples

Example 1 — a first encounter with ITP method

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

In research
ITP method appears in computer 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 ITP method 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
ITP method is common in secondary-school and first-year university syllabi. It links to neighbouring topics Root-finding algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for ITP method 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 “ITP method” →

How to study ITP method in 20 minutes

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

Frequently asked questions

What is ITP method in simple terms?

In numerical analysis, the ITP method (Interpolate Truncate and Project method) is the first root-finding algorithm that achieves the superlinear convergence of the secant method while retaining the optimal worst-case performance of the bisection method. It is also the first method with guaranteed…

Why does ITP method matter?

Because it connects several computer 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 ITP method?

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 ITP method.

Tags

  • Root-finding algorithms

Keep exploring