Fabulous Adventures in Data Structures and Algorithms

you own this product
Eric Lippert
Foreword by Jon Skeet
  • September 2026
  • ISBN 9781633435032
  • 368 pages
  • printed in black & white
print book available Sep 9, 2026
ePub + liveBook available Sep 9, 2026

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Look inside
"Rigorous, curious, quietly funny, and extraordinarily generous with hard-won insight."
—Scott Hanselman, Microsoft


Fabulous Adventures in Data Structures and Algorithms invites you to step off the beaten path and explore interesting, unfamiliar, and even exotic algorithms that will challenge your perspective and elevate your code. Legendary language designer Eric Lippert guides you with a refreshing, conversational approach, providing beautifully practical examples that highlight the recurring patterns behind stubborn coding problems.

You’ll begin with a fresh look at foundational, thread-safe, and persistent immutable data structures. Lippert demystifies stacks, queues, and finger-tree deques, illustrating how to manage memory efficiently through persistence. For developers working in highly concurrent, cloud native environments, these patterns will help you eliminate hard-to-spot race conditions and state-mutation bugs.

Your fabulous adventure then turns to structural search, compiler design, and the integration of functional programming within mainstream object-oriented languages. You’ll dive into Directed Acyclic Word Graphs (DAWGs), greedy pretty printers, and the complexities of tree unification. This section bridges theory and real-world tools, teaching you how to design highly modular compilers or robust static analysis engines and to write declarative, composable, and expressive APIs.

In the final leg of your journey, you’ll model randomness, statistical reasoning, and continuous probability—core concepts for AI and predictive analytics. Lippert introduces advanced Bayesian and monadic techniques, teaching you how to construct joint distributions and sample them using the powerful Metropolis algorithm. This statistical toolkit aligns perfectly with modern data-driven systems that need to make consistent, sound decisions under real-world uncertainty.

In the age of AI coding, implementation is becoming cheaper. AI can write code, but it cannot relieve developers of responsibility for understanding what the code means, why a given solution was chosen, how it will scale, and whether the problem has been framed correctly. This book develops exactly that judgment. It teaches the part that is becoming more valuable: recognizing, selecting, questioning, and evaluating the ideas behind implementations. It is an apprenticeship in computational taste, taught through unusual and memorable examples.

what's inside

  • Build highly efficient, thread-safe concurrent systems using immutable parts
  • Compress massive data representation sizes using memoized quadtrees and DAWGs
  • Solve complex compiler optimizations using unification and backtracking search
  • Automate precise, mathematically sound decisions under real-world uncertainty

about the reader

For working programmers familiar with C#, Java, or Python.

about the author

Eric Lippert has designed programming languages, compilers, and developer tools for Microsoft, Coverity, and Facebook. He was a key member of the C# language design team and writes at ericlippert.com.

Filled with real-life examples and unique experiences drawn from the author’s career journey. A true gem.

Anton Gubarenko, Independent iOS Consultant, Mentor, and Startup Advisor

Goes well beyond the typical text on data structures and algorithms.

Ronald Mak, Author of Software Design for Python Programmers

Succeeds in making advanced topics accessible without oversimplifying them.

Stepan Plotytsia, Grid Dynamics Holdings, Inc.

Balances beautifully practical examples with theoretical knowledge in a way I have rarely seen.

Marc Staff, Arcelor Mittal

A bit of knowledge explained by someone who understands it well and sees the practical side of it.

Oleksandr Kaleniuk, Materialise N. V.

This book should be on every programmer’s bookshelf!

Christof Ullwer, independent computer scientist

It’s informative, the writing is a breath of fresh air, and the author truly does take you on a fabulous adventure.

Clyde Kallahan, Unlocked Labs
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Fabulous Adventures in Data Structures and Algorithms ebook for free
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Fabulous Adventures in Data Structures and Algorithms ebook for free