Week 124 of 145 ยท TAOCP Vol 4A: Combinatorial Algorithms, Part 1
TAOCP 7.1.3 Bitwise Tricks and Techniques (part 2)
1 task, 3 steps. Open a task's steps to see exactly what to do; each guide has the detail.
Sign up or sign in to tick these off and give this week a due date.
By the end of this week you can
- Use bit vectors to compute reachability in a digraph.
- Implement branch-free minimum and maximum with masks.
- Explain how binary labels find nearest common ancestors in a tree.
-
3 steps
Read ยง7.1.3 Bitwise Tricks and Techniques (part 2)
Week 124 ยท Self-check
Three quick questions
Ungraded, and it never holds anything up. Pick an answer to see why.
Watch along
Free talks and lectures that go with this week, on the speakers' own channels. Optional.
- Platologic ComputationDonald Knuth ยท Stanford Online ยท 1 h 33 minBroadword tricks, many bits at once in one register, from the material that became section 7.1.3. (opens in a new tab)
- Sideways HeapsDonald Knuth ยท Stanford Online ยท 1 h 18 minA data structure built from bitwise operations, drawn from section 7.1.3. (opens in a new tab)
Discussion
0 postsStuck on week 124, or finished early? Say what you tried and what happened. Hints over answers: full solutions go in a spoiler.
No posts yet. Ask a question or share a tip.
Sign in to postAnyone can read. Posting needs an account with a confirmed email.