Hacker's Delight is a computer science masterpiece written by Henry S. Warren in 2002. It is the only book that explains the computer algorithm on the market. By contrast, other algorithms related books basically are all about mathematical algorithms. Of course, the mathematical algorithm also mainly serves the computer science, but basically, it doesn't care about the details of computer architectures.

Hacker's Delight intuitively and clearly tells the deeper and more secret technologies of computer arithmetic and brings together various coding tips. That includes the algorithms for common tasks, such as the boundary of 2's power along with boundary detection, rearrangement of bits and bytes, integer division and constant division, the base meaning aiming at integer, space filling curve, prime formula, etc.

So, Hacker's Delight is suitable for the designer and developer of routine library and compiler, programmers in pursuit of beautiful program design and computer hardware designer to carefully think over and taste. In other words, it' s particularly written for readers who want to write clever and efficient codes, or hope to band the computer software and hardware together organically when programming.

Table Of Contents

  • Chapter 1. Introduction
  • Chapter 2. Basicsw
  • Chapter 3. Power-of-2 Boundaries
  • Chapter 4. Arithmetic Bounds
  • Chapter 5. Counting bits
  • Chapter 6. Searching Words
  • Chapter 7. Rearranging Bits and Bytes
  • Chapter 8. Multiplication
  • Chapter 9. Integer Division
  • Chapter 10. Integer Division by Constants
  • Chapter 11. Some Elementary Functions
  • Chapter 12. Unusual Bases for Number Systems
  • Chapter 13. Gray Code
  • Chapter 14. Cyclic Redundancy Check
  • Chapter 15. Error-Correcting Codes
  • Chapter 16. Hilbert’s Curve
  • Chapter 17. Floating-Point
  • Chapter 18. Formulas for Primes
  • Answers to Exercises
  • Appendix A. Arithmetic Tables for a 4-Bit Machine
  • Appendix B. Newton’s Method
  • Appendix C. A Gallery of Graphs of Discrete Functions

Book Example Codes

Download URLs

Format Download Size
First Edition
PDF reserved n/a
CHM reserved n/a
EPUB reserved n/a
Second Edition
PDF 11.4 MB
CHM 28.2 MB
EPUB 44.8 MB
(Homepage)