Programming for the Puzzled

Learn to Program While Solving Puzzles

... more

Edition: US - Paperback / softback
Price:
Sale priceHK$200.00 Regular priceHK$250.00
Stock:
Re-stocking soon
Product Info
English
272 pages 17.78 x 22.86 x 1.27 cm
Approx. weight: 0.44 kg
Publication date: 03 Nov,2017
Barcode/ ISBN: 9780262534307 The MIT Press

More books in English for Age -

Description

By: Srini Devadas     
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.

You may also like

熱銷中 Top Trending

View all
Dog Man 14: Dog Man: Big Jim Believes: A Graphic Novel (Dog Man #14)-Graphic novel / Comic book / Manga: genres-買書書 BuyBookBook
Dog Man 14: Dog Man: Big Jim Believes: A Graphic Novel (Dog Man #14)
Sale priceHK$85.00 Regular priceHK$150.00
In stock
Dragon Masters #30 Vortex of the Chaos Dragon (Branches) (Tracey West)-Children’s / Teenage fiction: Action and adventure stories-買書書 BuyBookBook
Dragon Masters #30 Vortex of the Chaos Dragon (Branches) (Tracey West)
Sale priceHK$55.00 Regular priceHK$69.00
In stock
Diary of a Wimpy Kid: Partypooper (Book 20)
Diary of a Wimpy Kid: Partypooper (Book 20)
Sale priceHK$85.00 Regular priceHK$210.00
In stock
Disney Zootopia 2 Ultimate Sticker Book
Disney Zootopia 2 Ultimate Sticker Book
Sale priceHK$46.00 Regular priceHK$70.00
In stock
The Anxious Generation
The Anxious Generation
Sale priceFrom HK$83.00 Regular priceHK$140.00
In stock
Baby's Very First Touchy-Feely Book Usborne
Baby's Very First Touchy-Feely Book
Sale priceHK$60.00 Regular priceHK$98.00
In stock
Wonder-Children’s / Teenage fiction: School stories-買書書 BuyBookBook
Wonder
Sale priceFrom HK$64.00 Regular priceHK$96.00
In stock
Surrounded by Idiots Revised & Expanded Edition
Surrounded by Idiots Revised & Expanded Edition
Sale priceHK$85.00 Regular priceHK$130.00
In stock
Fearless-Children’s / Teenage fiction: Fantasy-買書書 BuyBookBook
Fearless
Sale priceHK$145.00 Regular priceHK$238.00
In stock
InvestiGators: Case Files-Graphic novel / Comic book / Manga: genres-買書書 BuyBookBook
InvestiGators #09: Case Files
Sale priceHK$77.00 Regular priceHK$140.00
In stock
Spot Goes to School-Children’s picture books-買書書 BuyBookBook
Spot Goes to School
Sale priceFrom HK$62.00 Regular priceHK$98.00
In stock
The Humble Pie
The Humble Pie
Sale priceFrom HK$56.00 Regular priceHK$90.00
In stock
Guinness World Records 2026
Guinness World Records 2026
Sale priceHK$195.00 Regular priceHK$286.00
In stock
Harry Potter #4 and the Goblet of Fire (Interactive Illustrated Edition)
Harry Potter #4 and the Goblet of Fire (Interactive Illustrated Edition)
Sale priceHK$299.00 Regular priceHK$630.00
In stock
野貓軍團總動員 Ⅰ (5冊) (工藤紀子)
野貓軍團總動員 Ⅰ (5冊) (工藤紀子)
Sale priceHK$325.00 Regular priceHK$467.00
In stock
The Secret of Secrets-Fiction: Thriller and horror-買書書 BuyBookBook
The Secret of Secrets
Sale priceFrom HK$209.00 Regular priceHK$330.00
Re-stocking soon
Food Group, The - Bundle (Jory John)
Food Group, The - Bundle (Jory John)
Sale priceFrom HK$255.00 Regular priceHK$630.00
In stock
NGK Little Kids First Big Book of the World (Hardback) National Geographic
National Geographic Little Kids First Big Book of the World
Sale priceFrom HK$96.00 Regular priceHK$150.00
In stock
LEGO Marvel Spider-Man Explore the Spider-Verse-Children’s / Teenage general interest: Hobbies/ quizzes/ toys and games-買書書 BuyBookBook
LEGO Marvel Spider-Man Explore the Spider-Verse
Sale priceHK$111.00 Regular priceHK$170.00
In stock
The Art and Making of Arcane
The Art and Making of Arcane
Sale priceHK$419.00 Regular priceHK$700.00
In stock
Disney Zootopia 2: The Junior Novelization-Children’s / Teenage fiction: General and modern fiction-買書書 BuyBookBook
Disney Zootopia 2: The Junior Novelization
Sale priceHK$51.00 Regular priceHK$80.00
In stock
Roald Dahl (正版) Collection (16 Books) Penguin UK
Roald Dahl (正版) Collection
Sale priceFrom HK$279.00 Regular priceHK$832.00
In stock
Guess How Much I Love You-Children’s / Teenage fiction: Classic fiction-買書書 BuyBookBook
Guess How Much I Love You
Sale priceFrom HK$58.00 Regular priceHK$90.00
In stock

Recently viewed