TAOCP Vol 2: Seminumerical Algorithms · Week 86

TAOCP 4.6.2 Factorization of Polynomials

Updated

About 7 hours41 exercises, rated 20 to M47

Summary

TAOCP 4.6.2 Factorization of Polynomials: Factoring polynomials modulo a prime (Berlekamp's algorithm and distinct-degree factorization) and then lifting to factor polynomials over the integers. Budget about 7 hours; do exercises 9, 10 and 11.

Flashcards 14 cards for Anki and AnkiMobile · all decks

Anki deck.tsv

This week's steps

3 steps
  1. Read §4.6.2 Factorization of Polynomials

    Read the overview and follow one small worked example of Berlekamp's algorithm.

  2. Work the exercises (8 picked)

    Start with Ex 9, Ex 10, Ex 11; log what you solve below.

  3. Write down one thing you'd explain to someone

    A few sentences in your own words in Your notes: the idea, why it works, an example. 30 words ticks this.

Sign in to track this: tick each step off and it counts toward your week.

Exercises

This section has 41 exercises, rated 20 to M47, and Knuth marks 10 of them with the triangle for recommended. Work Berlekamp's algorithm on the text's example by hand or with a small program before the theory exercises.

Worth your time

  • Exercise 920

    Build a table of inverses mod 101 from a primitive root.

    Discuss

  • Exercise 1021▶ Recommended

    Factor the text's example mod 2 with Berlekamp.

    Discuss

  • Exercise 1122

    Same polynomial mod 5.

    Discuss

  • Exercise 12M22▶ Recommended

    How x^4 + 1 factors modulo every prime.

    Discuss

  • Exercise 15M27▶ Recommended

    Square roots modulo a prime. Needed all over number theory and crypto.

    Discuss

  • Exercise 19M20

    Eisenstein's irreducibility criterion.

    Discuss

  • Exercise 22M24▶ Recommended

    Hensel lifting of a factorization mod p to mod p^e. The stretch.

    Discuss

  • Exercise 34M25▶ Recommended

    Squarefree factorization using derivatives and gcds.

    Discuss

Your log

Sign in to log the exercises you work: number, rating, how far you got.

Your notes

Only you

Sign in to keep private notes on this guide, in Markdown. They stay yours: never on your profile, and you can export them all.

Discussion

0 posts

Questions about the reading go here; each exercise has its own thread below. Hints over answers.

No posts yet. Ask a question or share a tip.

Sign in to postAnyone can read. Posting needs an account with a confirmed email.

Exercise threads

One thread per exercise. Open one to ask for a nudge or check your thinking.

  • Exercise 920No posts yet

    Hints over answers. Say what you tried; put an answer or a full solution inside a spoiler: ||like this|| or a ```spoiler block.

    Sign in to postAnyone can read. Posting needs an account with a confirmed email.

  • Exercise 1021No posts yet

    Hints over answers. Say what you tried; put an answer or a full solution inside a spoiler: ||like this|| or a ```spoiler block.

    Sign in to postAnyone can read. Posting needs an account with a confirmed email.

  • Exercise 1122No posts yet

    Hints over answers. Say what you tried; put an answer or a full solution inside a spoiler: ||like this|| or a ```spoiler block.

    Sign in to postAnyone can read. Posting needs an account with a confirmed email.

  • Exercise 12M22No posts yet

    Hints over answers. Say what you tried; put an answer or a full solution inside a spoiler: ||like this|| or a ```spoiler block.

    Sign in to postAnyone can read. Posting needs an account with a confirmed email.

  • Exercise 15M27No posts yet

    Hints over answers. Say what you tried; put an answer or a full solution inside a spoiler: ||like this|| or a ```spoiler block.

    Sign in to postAnyone can read. Posting needs an account with a confirmed email.

  • Exercise 19M20No posts yet

    Hints over answers. Say what you tried; put an answer or a full solution inside a spoiler: ||like this|| or a ```spoiler block.

    Sign in to postAnyone can read. Posting needs an account with a confirmed email.

  • Exercise 22M24No posts yet

    Hints over answers. Say what you tried; put an answer or a full solution inside a spoiler: ||like this|| or a ```spoiler block.

    Sign in to postAnyone can read. Posting needs an account with a confirmed email.

  • Exercise 34M25No posts yet

    Hints over answers. Say what you tried; put an answer or a full solution inside a spoiler: ||like this|| or a ```spoiler block.

    Sign in to postAnyone can read. Posting needs an account with a confirmed email.

Reference

Why it matters

One of the more specialized sections. It matters for computer algebra and coding theory; for most programmers the takeaway is that factoring polynomials is surprisingly tractable while factoring integers is not.

Before you start
  • 4.6.1 Division of Polynomials
  • Basic linear algebra mod p
How to approach it

Read the overview and follow one small worked example of Berlekamp's algorithm. Skim the rest. Spend extra time catching up if you are behind.

Common traps
  • Feeling you must master this. It is fine to come back later.

Spot a mistake? Report it

Back to week 86