Algorithms And Data Structures Codexery

Bisection method

A simple, robust root-finding method for continuous functions.

Bisection method

The bisection method is a root-finding algorithm in mathematics, applicable to any continuous function for which two values with opposite signs are known. It is a simple and robust technique, though relatively slow, often used to obtain a rough approximation for more rapidly converging methods.

field
Mathematics
known_for
Root-finding method for continuous functions
also_called
Interval halving method, binary search method, dichotomy method

Lore & Background

The method applies to solving the equation f(x)=0 for a real variable x, where f is continuous on an interval [a,b] and f(a) and f(b) have opposite signs. By the intermediate value theorem, at least one root exists in (a,b). At each step, the interval is bisected at the midpoint c=(a+b)/2, and the subinterval where the function changes sign is selected. This process halves the interval width at each step until it is sufficiently small.

Reader's Guide

The bisection method is significant for its simplicity and robustness, requiring only that the function be continuous and that initial endpoints bracket a root. It is guaranteed to converge, but its linear convergence rate makes it slower than methods like Newton's method. Consequently, it is often used to obtain a rough approximation that is then refined by faster algorithms. For polynomials, more elaborate methods such as Descartes' rule of signs, Sturm's theorem, and Budan's theorem allow extending the bisection method into efficient algorithms for finding all real roots, a process known as real-root isolation. Stopping conditions include absolute tolerance, relative tolerance, and checking the function value at the midpoint, with relative tolerance recommended when nothing is known about the root's value.

Did You Know?

Frequently Asked Questions

Who is Bisection method?

Bisection method is a root-finding algorithm from the mathematics canon, featured in the Algorithms And Data Structures 1-24 series. It targets any continuous function for which two bracketing points with opposite signs are already known, then repeatedly splits the interval in half to zero in on a solution.

What are Bisection method's powers and role?

Its signature move is halving a bracketing interval over and over until the remaining segment is acceptably narrow, guaranteeing convergence as long as the function stays continuous. It is celebrated for its robustness and simplicity, though it converges relatively slowly compared to more sophisticated solvers.

How does Bisection method's story end?

Rather than serving as the final act, it typically hands its rough approximation off to faster-converging techniques that demand a solid starting guess. In the broader algorithmic narrative it plays the dependable supporting role of a first pass before the more agile methods take the lead.

Why is Bisection method important?

It requires only continuity and a sign change—no derivatives, no special function structure—making it one of the simplest guaranteed-convergence root finders available. That minimal set of assumptions keeps it a go-to baseline and a staple teaching tool in numerical analysis.

What are Bisection method's aliases in the series?

Fans and textbooks also call it the interval halving method, the binary search method, or the dichotomy method. All three names point to the same repeated-halving strategy for narrowing down a root.

More in Algorithms And Data Structures 1-24

Elsewhere in the Algorithms And Data Structures universe

Spotted an error? Know more?

This is a living reference — every entry is fact-audited, and reader corrections feed straight into our audit queue. Suggest an edit · See this site's audit record

Comments

Loading…
Open in the interactive codex →