TAOCP Vol 4A: Combinatorial Algorithms, Part 1 · Week 133

TAOCP Vol 4A review

Updated

About 5 hours1498 exercises, rated M00 to 50

Summary

TAOCP Vol 4A review: A review week for Volume 4A: Boolean functions, bitwise tricks, BDDs and generating combinatorial objects. Budget about 5 hours; do exercises 7-111, 7.1.1-55 and 7.1.2-17.

Flashcards 13 cards for Anki and AnkiMobile · all decks

Anki deck.tsv

This week's steps

3 steps
  1. Read §Vol 4A review

    Collect your generators and bit-trick tests into one library.

  2. Work the exercises (8 picked)

    Start with Ex 7-111, Ex 7.1.1-55, Ex 7.1.2-17; 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

Vol 4A has 1498 exercises in all, rated M00 to 50, and 452 of them carry Knuth's triangle for recommended. Use the week to finish ones you skipped, or try this harder mixed set, none of which appear in the weekly picks. Picks are referenced as section-number.

Worth your time

  • Exercise 7.1.1-5530▶ Recommended

    Recognize Horn functions in disguise by reducing the question to 2SAT.

    Discuss

  • Exercise 7.1.2-1725▶ Recommended

    Show any Boolean function can be computed with n+1 one-bit registers.

    Discuss

  • Exercise 7.1.3-2327▶ Recommended

    Represent nested parentheses as bit strings and step to the next one with bit tricks. Joins 7.1.3 with 7.2.1.6.

    Discuss

  • Exercise 7.1.4-21824▶ Recommended

    Apply BDDs and ZDDs to Langford pairs from the start of the chapter. Brings the volume full circle.

    Discuss

  • Exercise 7.2.1.2-111M25▶ Recommended

    Study universal cycles of permutations, the permutation analog of de Bruijn cycles.

    Discuss

  • Exercise 7.2.1.4-6432▶ Recommended

    Generate partitions into powers of 2 looplessly.

    Discuss

  • Exercise 7.2.1.6-2530▶ Recommended

    Generate binary trees so that each step prunes one subtree and grafts it elsewhere.

    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 7.1.1-5530No 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 7.1.2-1725No 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 7.1.3-2327No 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 7.1.4-21824No 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 7.2.1.2-111M25No 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 7.2.1.4-6432No 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 7.2.1.6-2530No 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

Vol 4B builds directly on backtracking over these objects, and bit tricks and BDD ideas return in dancing links and SAT.

Before you start
  • All of Vol 4A
How to approach it

Collect your generators and bit-trick tests into one library. Write a short summary of when to use BDDs.

Spot a mistake? Report it

Back to week 133