Programming for the Puzzled

Learn to Program While Solving Puzzles

(Author) Srini Devadas
Format: Paperback
£24.00 Price: £18.72 (22% off)
Generally dispatched in 1 to 2 days

Learning programming with one of “the coolest applications around”: algorithmic puzzles ranging from scheduling selfie time to verifying the six degrees of separation hypothesis. This book builds a bridge between the recreational world of algorithmic puzzles (puzzles that can be solved by algorithms) and the pragmatic world of computer programming, teaching readers to program while solving puzzles. Few introductory students want to program for programming's sake. Puzzles are real-world applications that are attention grabbing, intriguing, and easy to describe. Each lesson starts with the description of a puzzle. After a failed attempt or two at solving the puzzle, the reader arrives at an Aha! moment—a search strategy, data structure, or mathematical fact—and the solution presents itself. The solution to the puzzle becomes the specification of the code to be written. Readers will thus know what the code is supposed to do before seeing the code itself. This represents a pedagogical philosophy that decouples understanding the functionality of the code from understanding programming language syntax and semantics. Python syntax and semantics required to understand the code are explained as needed for each puzzle. Readers need only the rudimentary grasp of programming concepts that can be obtained from introductory or AP computer science classes in high school. The book includes more than twenty puzzles and more than seventy programming exercises that vary in difficulty. Many of the puzzles are well known and have appeared in publications and on websites in many variations. They range from scheduling selfie time with celebrities to solving Sudoku problems in seconds to verifying the six degrees of separation hypothesis. The code for selected puzzle solutions is downloadable from the book's website; the code for all puzzle solutions is available to instructors.

Information
Publisher:
MIT Press
Format:
Paperback
Number of pages:
273
Language:
en
ISBN:
9780262534307
Publish year:
2017
Publish date:
Nov. 3, 2017

Srini Devadas

Srini Devadas is a renowned computer scientist and educator, known for his research in computer security and cryptography. His most famous work includes developing techniques for secure hardware design. Devadas' writing style is precise and technical, making complex concepts accessible to a wider audience. He has made significant contributions to the field of computer science and cybersecurity.

Reviews

Leave a review

Please login to leave a review.

Be the first to review this product

Other related

Love Machines

Love Machines

How Artificial Intelligence is Transforming Our Relationships

James Muldoon
Paperback
Published: 2026
Agentic AI For Dummies

Agentic AI For Dummies

Pam Baker
Paperback
Published: 2026
ChatGPT for Students

ChatGPT for Students

Frank Blackwell
Fold-outboo
Published: 2026
Nexus

Nexus

A Brief History of Information Networks from the Stone Age to AI

Yuval Noah Harari
Paperback
Published: 2025
The Immortalists

The Immortalists

The Death of Death and the Race for Eternal Life

Aleks Krotoski, Krotoski Aleks
Hardcover
Published: 2025
If Anyone Builds It, Everyone Dies

If Anyone Builds It, Everyone Dies

The Case Against Superintelligent AI

Eliezer Yudkowsky
Hardcover
Published: 2025