ArticleslgStudy

computer science

Abramov's algorithm

Abramov's 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 Abramov's algorithm rather than just read about it. In short: In mathematics, particularly in computer algebra, Abramov's algorithm computes all rational solutions of a linear recurrence equation with polynomial coefficients. The algorithm was published by Sergei A.

Key takeaways

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

Reference excerpt

In mathematics, particularly in computer algebra, Abramov's algorithm computes all rational solutions of a linear recurrence equation with polynomial coefficients. The algorithm was published by Sergei A. Abramov in 1989.

Universal denominator The main concept in Abramov's algorithm is a universal denominator. Let 𝕂 be a field of characteristic zero. The dispersion dis⁡(p,q) of two polynomials p,q∈𝕂[n] is defined asdis⁡(p,q)=max⁡{k∈ℕ:deg⁡(gcd⁡(p(n),q(n+k)))≥1}∪{−1},where ℕ denotes the set of non-negative integers. Therefore the dispersion is the maximum k∈ℕ such that the polynomial p and the k-times shifted polynomial q have a common factor. It is −1 if such a k does not exist. The dispersion can be computed as the largest non-negative integer root of the resultant resn(p(n),q(n+k))∈𝕂[k]. Let ∑k=0rpk(n)y(n+k)=f(n) be a recurrence equation of order r with polynomial coefficients pk∈𝕂[n], polynomial right-hand side f∈𝕂[n] and rational sequence solution y(n)∈𝕂(n). It is possible to write y(n)=p(n)/q(n) for two relatively prime polynomials p,q∈𝕂[n]. Let D=dis⁡(pr(n−r),p0(n)) andu(n)=gcd⁡([p0(n+D)]D+1_,[pr(n−r)]D+1_)where [p(n)]k_=p(n)p(n−1)⋯p(n−k+1) denotes the falling factorial of a function. Then q(n) divides u(n). So the polynomial u(n) can be used as a denominator for all rational solutions y(n) and hence it is called a universal denominator.

Algorithm Let again ∑k=0rpk(n)y(n+k)=f(n) be a recurrence equation with polynomial coefficients and u(n) a universal denominator. After substituting y(n)=z(n)/u(n) for an unknown polynomial z(n)∈𝕂[n] and setting ℓ(n)=lcm⁡(u(n),…,u(n+r)) the recurrence equation is equivalent to∑k=0rpk(n)z(n+k)u(n+k)ℓ(n)=f(n)ℓ(n).As the u(n+k) cancel this is a linear recurrence equation with polynomial coefficients which can be solved for an unknown polynomial solution z(n). There are algorithms to find polynomial solutions. The solutions for z(n) can then be used again to compute the rational solutions y(n)=z(n)/u(n).

algorithm rational_solutions is input: Linear recurrence equation ∑k=0rpk(n)y(n+k)=f(n),pk,f∈𝕂[n],p0,pr≠0. output: The general rational solution y if there are any solutions, otherwise false.

D=disp⁡(pr(n−r),p0(n)) u(n)=gcd⁡([p0(n+D)]D+1_,[pr(n−r)]D+1_) ℓ(n)=lcm⁡(u(n),…,u(n+r)) Solve ∑k=0rpk(n)z(n+k)u(n+k)ℓ(n)=f(n)ℓ(n) for general polynomial solution z(n) if solution z(n) exists then return general solution y(n)=z(n)/u(n) else return false end if

Example The homogeneous recurrence equation of order 1(n−1)y(n)+(−n−1)y(n+1)=0over ℚ has a rational solution. It can be computed by considering the dispersionD=dis⁡(p1(n−1),p0(n))=disp⁡(−n,n−1)=1.This yields the following universal denominator:u(n)=gcd⁡([p0(n+1)]2_,[pr(n−1)]2_)=(n−1)nandℓ(n)=lcm⁡(u(n),u(n+1))=(n−1)n(n+1).Multiplying the original recurrence equation with ℓ(n) and substituting y(n)=z(n)/u(n) leads to(n−1)(n+1)z(n)+(−n−1)(n−1)z(n+1)=0.This equation has the polynomial solution z(n)=c for an arbitrary constant c∈ℚ. Using y(n)=z(n)/u(n) the general rational solution isy(n)=c(n−1)nfor arbitrary c∈ℚ.

References

Worked examples

Example 1 — a first encounter with Abramov's algorithm

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

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

How to study Abramov's algorithm in 20 minutes

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

Frequently asked questions

What is Abramov's algorithm in simple terms?

In mathematics, particularly in computer algebra, Abramov's algorithm computes all rational solutions of a linear recurrence equation with polynomial coefficients. The algorithm was published by Sergei A.

Why does Abramov's 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 Abramov's 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 Abramov's algorithm.

Tags

  • Computer algebra

Keep exploring