The Recursive Book of Recursion
Title | The Recursive Book of Recursion PDF eBook |
Author | Al Sweigart |
Publisher | No Starch Press |
Pages | 330 |
Release | 2022-08-16 |
Genre | Computers |
ISBN | 1718502036 |
An accessible yet rigorous crash course on recursive programming using Python and JavaScript examples. Recursion has an intimidating reputation: it’s considered to be an advanced computer science topic frequently brought up in coding interviews. But there’s nothing magical about recursion. The Recursive Book of Recursion uses Python and JavaScript examples to teach the basics of recursion, exposing the ways that it’s often poorly taught and clarifying the fundamental principles of all recursive algorithms. You’ll learn when to use recursive functions (and, most importantly, when not to use them), how to implement the classic recursive algorithms often brought up in job interviews, and how recursive techniques can help solve countless problems involving tree traversal, combinatorics, and other tricky topics. This project-based guide contains complete, runnable programs to help you learn: How recursive functions make use of the call stack, a critical data structure almost never discussed in lessons on recursion How the head-tail and “leap of faith” techniques can simplify writing recursive functions How to use recursion to write custom search scripts for your filesystem, draw fractal art, create mazes, and more How optimization and memoization make recursive algorithms more efficient Al Sweigart has built a career explaining programming concepts in a fun, approachable manner. If you’ve shied away from learning recursion but want to add this technique to your programming toolkit, or if you’re racing to prepare for your next job interview, this book is for you.
Introduction to Recursive Programming
Title | Introduction to Recursive Programming PDF eBook |
Author | Manuel Rubio-Sanchez |
Publisher | CRC Press |
Pages | 400 |
Release | 2017-10-05 |
Genre | Computers |
ISBN | 1351647172 |
Recursion is one of the most fundamental concepts in computer science and a key programming technique that allows computations to be carried out repeatedly. Despite the importance of recursion for algorithm design, most programming books do not cover the topic in detail, despite the fact that numerous computer programming professors and researchers in the field of computer science education agree that recursion is difficult for novice students. Introduction to Recursive Programming provides a detailed and comprehensive introduction to recursion. This text will serve as a useful guide for anyone who wants to learn how to think and program recursively, by analyzing a wide variety of computational problems of diverse difficulty. It contains specific chapters on the most common types of recursion (linear, tail, and multiple), as well as on algorithm design paradigms in which recursion is prevalent (divide and conquer, and backtracking). Therefore, it can be used in introductory programming courses, and in more advanced classes on algorithm design. The book also covers lower-level topics related to iteration and program execution, and includes a rich chapter on the theoretical analysis of the computational cost of recursive programs, offering readers the possibility to learn some basic mathematics along the way. It also incorporates several elements aimed at helping students master the material. First, it contains a larger collection of simple problems in order to provide a solid foundation of the core concepts, before diving into more complex material. In addition, one of the book's main assets is the use of a step-by-step methodology, together with specially designed diagrams, for guiding and illustrating the process of developing recursive algorithms. Furthermore, the book covers combinatorial problems and mutual recursion. These topics can broaden students' understanding of recursion by forcing them to apply the learned concepts differently, or in a more sophisticated manner. The code examples have been written in Python 3, but should be straightforward to understand for students with experience in other programming languages. Finally, worked out solutions to over 120 end-of-chapter exercises are available for instructors.
Recursion
Title | Recursion PDF eBook |
Author | Blake Crouch |
Publisher | Ballantine Books |
Pages | 338 |
Release | 2020-03-10 |
Genre | Fiction |
ISBN | 1524759791 |
NEW YORK TIMES BESTSELLER • From the bestselling author of Dark Matter and the Wayward Pines trilogy comes a relentless thriller about time, identity, and memory—his most mind-boggling, irresistible work to date, and the inspiration for Shondaland’s upcoming Netflix film. “Gloriously twisting . . . a heady campfire tale of a novel.”—The New York Times Book Review NAMED ONE OF THE BEST BOOKS OF THE YEAR BY Time • NPR • BookRiot Reality is broken. At first, it looks like a disease. An epidemic that spreads through no known means, driving its victims mad with memories of a life they never lived. But the force that’s sweeping the world is no pathogen. It’s just the first shock wave, unleashed by a stunning discovery—and what’s in jeopardy is not our minds but the very fabric of time itself. In New York City, Detective Barry Sutton is closing in on the truth—and in a remote laboratory, neuroscientist Helena Smith is unaware that she alone holds the key to this mystery . . . and the tools for fighting back. Together, Barry and Helena will have to confront their enemy—before they, and the world, are trapped in a loop of ever-growing chaos. Praise for Recursion “An action-packed, brilliantly unique ride that had me up late and shirking responsibilities until I had devoured the last page . . . a fantastic read.”—Andy Weir, #1 New York Times bestselling author of The Martian “Another profound science-fiction thriller. Crouch masterfully blends science and intrigue into the experience of what it means to be deeply human.”—Newsweek “Definitely not one to forget when you’re packing for vacation . . . [Crouch] breathes fresh life into matters with a mix of heart, intelligence, and philosophical musings.”—Entertainment Weekly “A trippy journey down memory lane . . . [Crouch’s] intelligence is an able match for the challenge he’s set of overcoming the structure of time itself.”—Time “Wildly entertaining . . . another winning novel from an author at the top of his game.”—AV Club
Thinking Recursively
Title | Thinking Recursively PDF eBook |
Author | Eric Roberts |
Publisher | John Wiley & Sons |
Pages | 200 |
Release | 1986-01-17 |
Genre | Computers |
ISBN |
The process of solving large problems by breaking them down intosmaller, more simple problems that have identical forms. ThinkingRecursively: A small text to solve large problems. Concentrating onthe practical value of recursion. this text, the first of its kind,is essential to computer science students' education. In thistext, students will learn the concept and programming applicationsof recursive thinking. This will ultimately prepare students foradvanced topics in computer science such as compiler construction,formal language theory, and the mathematical foundations ofcomputer science. Key Features: * Concentration on the practical value of recursion. * Eleven chapters emphasizing recursion as a unifiedconcept. * Extensive discussion of the mathematical concepts which helpthe students to develop an appropriate conceptual model. * Large number of imaginative examples with solutions. * Large sets of exercises.
Recursion
Title | Recursion PDF eBook |
Author | Tony Ballantyne |
Publisher | Spectra |
Pages | 434 |
Release | 2006-08-29 |
Genre | Fiction |
ISBN | 0553902873 |
The future is everything we wanted it to be—and far more than we bargained for. It is the twenty-third century. Herb, a young entrepreneur, returns to the isolated planet on which he has illegally been trying to build a city—and finds it destroyed by a swarming nightmare of self-replicating machinery. Worse, the all-seeing Environment Agency has been watching him the entire time. His punishment? A nearly hopeless battle in the farthest reaches of the universe against enemy machines twice as fast, and twice as deadly, as his own—in the company of a disarmingly confident AI who may not be exactly what he claims. . . . Little does Herb know that this war of machines was set in motion nearly two hundred years ago—by mankind itself. For it was then that a not-quite-chance encounter brought a confused young girl and a nearly omnipotent AI together in one fateful moment that may have changed the course of humanity forever.
The Recursive Mind
Title | The Recursive Mind PDF eBook |
Author | Michael C. Corballis |
Publisher | Princeton University Press |
Pages | 309 |
Release | 2014-04-27 |
Genre | Psychology |
ISBN | 1400851491 |
A groundbreaking theory of what makes the human mind unique The Recursive Mind challenges the commonly held notion that language is what makes us uniquely human. In this compelling book, Michael Corballis argues that what distinguishes us in the animal kingdom is our capacity for recursion: the ability to embed our thoughts within other thoughts. "I think, therefore I am," is an example of recursive thought, because the thinker has inserted himself into his thought. Recursion enables us to conceive of our own minds and the minds of others. It also gives us the power of mental "time travel"—the ability to insert past experiences, or imagined future ones, into present consciousness. Drawing on neuroscience, psychology, animal behavior, anthropology, and archaeology, Corballis demonstrates how these recursive structures led to the emergence of language and speech, which ultimately enabled us to share our thoughts, plan with others, and reshape our environment to better reflect our creative imaginations. He shows how the recursive mind was critical to survival in the harsh conditions of the Pleistocene epoch, and how it evolved to foster social cohesion. He traces how language itself adapted to recursive thinking, first through manual gestures, then later, with the emergence of Homo sapiens, vocally. Toolmaking and manufacture arose, and the application of recursive principles to these activities in turn led to the complexities of human civilization, the extinction of fellow large-brained hominins like the Neandertals, and our species' supremacy over the physical world.
Invent Your Own Computer Games with Python, 4th Edition
Title | Invent Your Own Computer Games with Python, 4th Edition PDF eBook |
Author | Al Sweigart |
Publisher | No Starch Press |
Pages | 377 |
Release | 2016-12-16 |
Genre | Computers |
ISBN | 1593277954 |
Invent Your Own Computer Games with Python will teach you how to make computer games using the popular Python programming language—even if you’ve never programmed before! Begin by building classic games like Hangman, Guess the Number, and Tic-Tac-Toe, and then work your way up to more advanced games, like a text-based treasure hunting game and an animated collision-dodging game with sound effects. Along the way, you’ll learn key programming and math concepts that will help you take your game programming to the next level. Learn how to: –Combine loops, variables, and flow control statements into real working programs –Choose the right data structures for the job, such as lists, dictionaries, and tuples –Add graphics and animation to your games with the pygame module –Handle keyboard and mouse input –Program simple artificial intelligence so you can play against the computer –Use cryptography to convert text messages into secret code –Debug your programs and find common errors As you work through each game, you’ll build a solid foundation in Python and an understanding of computer science fundamentals. What new game will you create with the power of Python? The projects in this book are compatible with Python 3.