How Hansel and Gretel, Sherlock Holmes, the movie Groundhog Day, Harry Potter, and other familiar stories illustrate the concepts of computing.
Picture a computer scientist, staring at a screen and clicking away frantically on a keyboard, hacking into a system, or perhaps developing an app. Now delete that picture. In Once Upon an Algorithm, Martin Erwig explains computation as something that takes place beyond electronic computers, and computer science as the study of systematic problem solving. Erwig points out that many daily activities involve problem solving. Getting up in the morning, for example: You get up, take a shower, get dressed, eat breakfast. This simple daily routine solves a recurring problem through a series of well-defined steps. In computer science, such a routine is called an algorithm.
Erwig illustrates a series of concepts in computing with examples from daily life and familiar stories. Hansel and Gretel, for example, execute an algorithm to get home from the forest. The movie Groundhog Day illustrates the problem of unsolvability; Sherlock Holmes manipulates data structures when solving a crime; the magic in Harry Potter's world is understood through types and abstraction; and Indiana Jones demonstrates the complexity of searching. Along the way, Erwig also discusses representations and different ways to organize data; “intractable” problems; language, syntax, and ambiguity; control structures, loops, and the halting problem; different forms of recursion; and rules for finding errors in algorithms.
This engaging book explains computation accessibly and shows its relevance to daily life. Something to think about next time we execute the algorithm of getting up in the morning.
"synopsis" may belong to another edition of this title.
Martin Erwig is Professor of Computer Science in the School of Electrical Engineering and Computer Science at Oregon State University.
This is a wonderful book. Algorithms and computation explained using the likes of Hansel and Gretel, Indiana Jones, Sherlock Holmes, and Harry Potter. For 35 years I've been trying to explain to people that algorithms are all around us, and that algorithmic thinking is an absolutely crucial skill that is needed in our day-to-day lives way beyond mere computers and electronics. Finally, here is a book for them to read.
―David Harel, Professor, The Weizmann Institute of Science, Vice President, Israel Academy of Sciences and Humanities; author of Algorithmics and Computers Ltd.: What they Really Can't DoBy connecting computing concepts with popular stories, Martin Erwig helps both the general public and students see computing's relevance beyond traditional technology contexts. I suspect that readers will begin to see computing everywhere!
―Pat Yongpradit, Chief Academic Officer, Code.orgClever algorithms and data structures are at the core of computer science. This book is an excellent exposition of computational and informational thinking, and one that is unusually accessible to anyone with an inquiring mind.
―Simon Peyton Jones"About this title" may belong to another edition of this title.
FREE shipping within U.S.A.
Destination, rates & speedsSeller: SecondSale, Montgomery, IL, U.S.A.
Condition: Very Good. Item in very good condition! Textbooks may not include supplemental items i.e. CDs, access codes etc. Seller Inventory # 00087342470
Quantity: 1 available
Seller: SecondSale, Montgomery, IL, U.S.A.
Condition: Good. Item in good condition. Textbooks may not include supplemental items i.e. CDs, access codes etc. Seller Inventory # 00083315917
Quantity: 1 available
Seller: clickgoodwillbooks, Indianapolis, IN, U.S.A.
Condition: Acceptable. This is a hard cover book: Used - Acceptable: All pages and the cover are intact, but shrink wrap, dust covers, or boxed set case may be missing. Pages may include limited notes, highlighting, or minor water damage but the text is readable. Item may be missing bundled media. Seller Inventory # 3O6WBH001TE3_ns
Quantity: 1 available
Seller: Goodwill Books, Hillsboro, OR, U.S.A.
Condition: Acceptable. Fairly worn, but readable and intact. If applicable: Dust jacket, disc or access code may not be included. Seller Inventory # 3IICZD000AHN
Quantity: 1 available
Seller: Seattle Goodwill, Seattle, WA, U.S.A.
Condition: Acceptable. May have some shelf-wear due to normal use. Your purchase funds free job training and education in the greater Seattle area. Thank you for supporting Goodwills nonprofit mission! Seller Inventory # 0KVOG1005KGS_ns
Quantity: 1 available
Seller: Better World Books, Mishawaka, IN, U.S.A.
Condition: Very Good. Former library book; may include library markings. Used book that is in excellent condition. May show signs of wear or have minor defects. Seller Inventory # 39275230-6
Quantity: 2 available
Seller: Patrico Books, Apollo Beach, FL, U.S.A.
Hardcover. Condition: Very Good. Ships Out Tomorrow! Seller Inventory # 220513073
Quantity: 1 available
Seller: MusicMagpie, Stockport, United Kingdom
Condition: Very Good. 1741177713. 3/5/2025 12:28:33 PM. Seller Inventory # U9780262036634
Quantity: 1 available
Seller: Goldstone Books, Llandybie, United Kingdom
hardcover. Condition: Very Good. All orders are dispatched within one working day from our UK warehouse. We've been selling books online since 2004! We have over 750,000 books in stock. No quibble refund if not completely satisfied. Seller Inventory # mon0007475396
Quantity: 1 available
Seller: Basi6 International, Irving, TX, U.S.A.
Condition: Brand New. New. US edition. Expediting shipping for all USA and Europe orders excluding PO Box. Excellent Customer Service. Seller Inventory # ABEJUNE24-69523
Quantity: 1 available