ArticleslgStudy

computer science

Zassenhaus algorithm

Zassenhaus 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 Zassenhaus algorithm rather than just read about it. In short: In mathematics, the Zassenhaus algorithm is a method to calculate a basis for the intersection and sum of two subspaces of a vector space. It is named after Hans Zassenhaus, but no publication of this algorithm by him is known.

Key takeaways

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

Reference excerpt

In mathematics, the Zassenhaus algorithm is a method to calculate a basis for the intersection and sum of two subspaces of a vector space. It is named after Hans Zassenhaus, but no publication of this algorithm by him is known. It is used in computer algebra systems.

Algorithm

Input Let V be a vector space and U, W two finite-dimensional subspaces of V with the following spanning sets:

U=⟨u1,…,un⟩ and

W=⟨w1,…,wk⟩. Finally, let B1,…,Bm be linearly independent vectors so that ui and wi can be written as

ui=∑j=1mai,jBj and

wi=∑j=1mbi,jBj.

Output The algorithm computes the base of the sum U+W and a base of the intersection U∩W.

Algorithm The algorithm creates the following block matrix of size ((n+k)×(2m)):

(a1,1a1,2⋯a1,ma1,1a1,2⋯a1,m⋮⋮⋮⋮⋮⋮an,1an,2⋯an,man,1an,2⋯an,mb1,1b1,2⋯b1,m00⋯0⋮⋮⋮⋮⋮⋮bk,1bk,2⋯bk,m00⋯0) Using elementary row operations, this matrix is transformed to the row echelon form. Then, it has the following shape:

(c1,1c1,2⋯c1,m∙∙⋯∙⋮⋮⋮⋮⋮⋮cq,1cq,2⋯cq,m∙∙⋯∙00⋯0d1,1d1,2⋯d1,m⋮⋮⋮⋮⋮⋮00⋯0dℓ,1dℓ,2⋯dℓ,m00⋯000⋯0⋮⋮⋮⋮⋮⋮00⋯000⋯0) Here, ∙ stands for arbitrary numbers, and the vectors (cp,1,cp,2,…,cp,m) for every p∈{1,…,q} and (dp,1,…,dp,m) for every p∈{1,…,ℓ} are nonzero. Then (y1,…,yq) with

yi:=∑j=1mci,jBj is a basis of U+W and (z1,…,zℓ) with

zi:=∑j=1mdi,jBj is a basis of U∩W.

Proof of correctness First, we define π1:V×V→V,(a,b)↦a to be the projection to the first component. Let H:={(u,u)∣u∈U}+{(w,0)∣w∈W}⊆V×V. Then π1(H)=U+W and H∩(0×V)=0×(U∩W). Also, H∩(0×V) is the kernel of π1|H, the projection restricted to H. Therefore, dim⁡(H)=dim⁡(U+W)+dim⁡(U∩W). The Zassenhaus algorithm calculates a basis of H. In the first m columns of this matrix, there is a basis yi of U+W. The rows of the form (0,zi) (with zi≠0) are obviously in H∩(0×V). Because the matrix is in row echelon form, they are also linearly independent. All rows which are different from zero ((yi,∙) and (0,zi)) are a basis of H, so there are dim⁡(U∩W) such zis. Therefore, the zis form a basis of U∩W.

Example Consider the two subspaces U=⟨(1−101),(001−1)⟩ and W=⟨(50−33),(05−3−2)⟩ of the vector space ℝ4. Using the standard basis, we create the following matrix of dimension (2+2)×(2⋅4):

(1−1011−101001−1001−150−33000005−3−20000). Using elementary row operations, we transform this matrix into the following matrix:

(1000∙∙∙∙010−1∙∙∙∙001−1∙∙∙∙00001−101) (Some entries have been replaced by "∙" because they are irrelevant to the result.) Therefore ((1000),(010−1),(001−1)) is a basis of U+W, and ((1−101)) is a basis of U∩W.

See also Gröbner basis

References

External links "Mathematik-Online-Lexikon: Zassenhaus-Algorithmus" (in German). Retrieved 2012-09-15.

Worked examples

Example 1 — a first encounter with Zassenhaus algorithm

Start with the simplest possible case. Write down what Zassenhaus 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 Zassenhaus 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 Zassenhaus 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 Zassenhaus algorithm

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

How to study Zassenhaus algorithm in 20 minutes

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

Frequently asked questions

What is Zassenhaus algorithm in simple terms?

In mathematics, the Zassenhaus algorithm is a method to calculate a basis for the intersection and sum of two subspaces of a vector space. It is named after Hans Zassenhaus, but no publication of this algorithm by him is known.

Why does Zassenhaus 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 Zassenhaus 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 Zassenhaus algorithm.

Tags

  • Algorithms
  • Linear algebra

Keep exploring