ArticleslgStudy

computer science

Divide-and-conquer eigenvalue algorithm

Divide-and-conquer eigenvalue algorithm 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 Divide-and-conquer eigenvalue algorithm rather than just read about it. In short: Divide-and-conquer eigenvalue algorithms are a class of eigenvalue algorithms for Hermitian or real symmetric matrices that have recently (circa 1990s) become competitive in terms of stability and efficiency with more traditional algorithms such as the QR algorithm. The basic concept behind these algorithms is the divide-and-conquer approach from computer science.

Divide-and-conquer eigenvalue algorithm — main illustration
Divide-and-conquer eigenvalue algorithm — illustration

Key takeaways

  • Divide-and-conquer eigenvalue algorithm 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 Divide-and-conquer eigenvalue algorithm to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Divide-and-conquer eigenvalue algorithm from memory before moving on to harder problems.

Reference excerpt

Divide-and-conquer eigenvalue algorithms are a class of eigenvalue algorithms for Hermitian or real symmetric matrices that have recently (circa 1990s) become competitive in terms of stability and efficiency with more traditional algorithms such as the QR algorithm. The basic concept behind these algorithms is the divide-and-conquer approach from computer science. An eigenvalue problem is divided into two problems of roughly half the size, each of these are solved recursively, and the eigenvalues of the original problem are computed from the results of these smaller problems. This article covers the basic idea of the algorithm as originally proposed by Cuppen in 1981, which is not numerically stable without additional refinements.

Background As with most eigenvalue algorithms for Hermitian matrices, divide-and-conquer begins with a reduction to tridiagonal form. For an m×m matrix, the standard method for this, via Householder reflections, takes 43m3 floating point operations, or 83m3 if eigenvectors are needed as well. There are other algorithms, such as the Arnoldi iteration, which may do better for certain classes of matrices; we will not consider this further here. In certain cases, it is possible to deflate an eigenvalue problem into smaller problems. Consider a block diagonal matrix

T=[T100T2]. The eigenvalues and eigenvectors of T are simply those of T1 and T2, and it will almost always be faster to solve these two smaller problems than to solve the original problem all at once. This technique can be used to improve the efficiency of many eigenvalue algorithms, but it has special significance to divide-and-conquer. For the rest of this article, we will assume the input to the divide-and-conquer algorithm is an m×m real symmetric tridiagonal matrix T. The algorithm can be modified for Hermitian matrices.

Divide The divide part of the divide-and-conquer algorithm comes from the realization that a tridiagonal matrix is "almost" block diagonal.

The size of submatrix T1 we will call n×n, and then T2 is (m−n)×(m−n). T is almost block diagonal regardless of how n is chosen. For efficiency we typically choose n≈m/2. We write T as a block diagonal matrix, plus a rank-1 correction:

The only difference between T1 and T̂1 is that the lower right entry tnn in T̂1 has been replaced with tnn−β and similarly, in T̂2 the top left entry tn+1,n+1 has been replaced with tn+1,n+1−β. The remainder of the divide step is to solve for the eigenvalues (and if desired the eigenvectors) of T̂1 and T̂2, that is to find the diagonalizations T̂1=Q1D1Q1T and T̂2=Q2D2Q2T. This can be accomplished with recursive calls to the divide-and-conquer algorithm, although practical implementations often switch to the implicitly shifted QR algorithm for small enough submatrices.

Conquer The conquer part of the algorithm is the unintuitive part. Given the diagonalizations of the submatrices, calculated above, how do we find the diagonalization of the original matrix? First, define zT=(q1T,q2T), where q1T is the last row of Q1 and q2T is the first row of Q2. It is now elementary to show that

T=[Q1Q2]([D1D2]+βzzT)[Q1TQ2T] The remaining task has been reduced to finding the eigenvalues of a diagonal matrix plus a rank-one correction. Before showing how to do this, let us simplify the notation. We are looking for the eigenvalues of the matrix D+wwT, where D is diagonal with distinct entries and w is any vector with nonzero entries. In this case w=|β|⋅z. The case of a zero entry is simple, since if wi is zero, (ei,di) is an eigenpair (ei is in the standard basis) of D+wwT since (D+wwT)ei=Dei=diei. If λ is an eigenvalue, we have:

(D+wwT)q=λq where q is the corresponding eigenvector. Now

(D−λI)q+w(wTq)=0 q+(D−λI)−1w(wTq)=0 wTq+wT(D−λI)−1w(wTq)=0 Keep in mind that wTq is a nonzero scalar. Neither w nor q are zero. If wTq were to be zero, q would be an eigenvector of D by (D+wwT)q=λq. If that were the case, q would contain only one nonzero position since D is distinct diagonal and thus the inner product wTq can not be zero after all. Therefore, we have:

1+wT(D−λI)−1w=0 or written as a scalar equation,

1+∑j=1mwj2dj−λ=0. This equation is known as the secular equation. The problem has therefore been reduced to finding the roots of the rational function defined by the left-hand side of this equation. Solving the nonlinear secular equation can be done using an iterative technique, such as the Newton–Raphson method. However, each root can be found in O(1) iterations, each of which requires Θ(m) flops (for an m-degree rational function), making the cost of the iterative part of this algorithm Θ(m2). The fast multipole method has also been employed to solve the secular equation in Θ(mlog⁡(m)) operations.

Analysis W will use the master theorem for divide-and-conquer recurrences to analyze the running time. Remember that above we stated we choose n≈m/2. We can write the recurrence relation:

T(m)=2×T(m2)+Θ(m2) In the notation of the Master theorem, a=b=2 and thus logba=1. Clearly, Θ(m2)=Ω(m1), so we have

T(m)=Θ(m2) Above, we pointed out that reducing a Hermitian matrix to tridiagonal form takes 43m3 flops. This dwarfs the running time of the divide-and-conquer part, and at this point it is not clear what advantage the divide-and-conquer algorithm offers over the QR algorithm (which also takes Θ(m2) flops for tridiagonal matrices). The advantage of divide-and-conquer comes when eigenvectors are needed as well. If this is the case, reduction to tridiagonal form takes 83m3, but the second part of the algorithm takes Θ(m3) as well. For the QR algorithm with a reasonable target precision, this is ≈6m3, whereas for divide-and-conquer it is ≈43m3. The reason for this improvement is that in divide-and-conquer, the Θ(m3) part of the algorithm (multiplying Q matrices) is separate from the iteration, whereas in QR, this must occur in every iterative step. Adding the 83m3 flops for the reduction, the total improvement is from ≈9m3 to ≈4m3 flops. Practical use of the divide-and-conquer algorithm has shown that in most realistic eigenvalue problems, the algorithm actually does better than this. The reason is that very often the matrices Q and the vectors z tend to be numerically sparse, meaning that they have many entries with values smaller than the floating point precision, allowing for numerical deflation, i.e. breaking the problem into uncoupled subproblems.

… excerpt ends here. Continue reading the full article.

Illustrations

Divide-and-conquer eigenvalue algorithm illustration

Worked examples

Example 1 — a first encounter with Divide-and-conquer eigenvalue algorithm

Start with the simplest possible case. Write down what Divide-and-conquer eigenvalue algorithm 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 Divide-and-conquer eigenvalue algorithm 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 Divide-and-conquer eigenvalue algorithm 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 Divide-and-conquer eigenvalue algorithm

In research
Divide-and-conquer eigenvalue algorithm 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 Divide-and-conquer eigenvalue algorithm 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
Divide-and-conquer eigenvalue algorithm is common in secondary-school and first-year university syllabi. It links to neighbouring topics Divide-and-conquer algorithms, Numerical linear algebra, so understanding it makes those chapters shorter.
In everyday life
Look for Divide-and-conquer eigenvalue algorithm 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 “Divide-and-conquer eigenvalue algorithm” →

How to study Divide-and-conquer eigenvalue algorithm in 20 minutes

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

Frequently asked questions

What is Divide-and-conquer eigenvalue algorithm in simple terms?

Divide-and-conquer eigenvalue algorithms are a class of eigenvalue algorithms for Hermitian or real symmetric matrices that have recently (circa 1990s) become competitive in terms of stability and efficiency with more traditional algorithms such as the QR algorithm. The basic concept behind these a…

Why does Divide-and-conquer eigenvalue algorithm 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 Divide-and-conquer eigenvalue algorithm?

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 Divide-and-conquer eigenvalue algorithm.

Tags

  • Divide-and-conquer algorithms
  • Numerical linear algebra

Keep exploring