Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Cover Page
Title Page
Copyright Page
Dedication
About the Author
About the Technical Reviewer
BRIEF CONTENTS
CONTENTS IN DETAIL
ACKNOWLEDGMENTS
INTRODUCTION
Who This Book Is For
What’s in This Book
Where to Get Help
Onward!
1 SILLY NAME GENERATOR
Project #1: Generating Pseudonyms
Planning and Designing a Project
The Code
Summary
Further Reading
Practice Projects
Challenge Projects
2 FINDING PALINGRAM SPELLS
Finding and Opening a Dictionary
Project #2: Finding Palindromes
Project #3: Finding Palingrams
dnE ehT
Further Reading
Practice Project: Dictionary Cleanup
Challenge Project: Recursive Approach
3 SOLVING ANAGRAMS
Project #4: Finding Single-Word Anagrams
Project #5: Finding Phrase Anagrams
Project #6: Finding Voldemort: The Gallic Gambit
Project #7: Finding Voldemort: The British Brute-Force
Summary
Further Reading
Practice Project: Finding Digrams
Challenge Project: Automatic Anagram Generator
4 DECODING AMERICAN CIVIL WAR CIPHERS
Project #8: The Route Cipher
Project #9: The Rail Fence Cipher
Summary
Further Reading
Practice Projects
Challenge Projects
5 ENCODING ENGLISH CIVIL WAR CIPHERS
Project #10: The Trevanion Cipher
Project #11: Writing a Null Cipher
Summary
Further Reading
Practice Projects
6 WRITING IN INVISIBLE INK
Project #12: Hiding a Vigenère Cipher
The Platform
The Strategy
The Pseudocode
The Code
Detecting the Hidden Message
Summary
Further Reading
Practice Project: Checking the Number of Blank Lines
Challenge Project: Using Monospace Font
7 BREEDING GIANT RATS WITH GENETIC ALGORITHMS
Finding the Best of All Possible Solutions
Project #13: Breeding an Army of Super-Rats
Project #14: Cracking a High-Tech Safe
Further Reading
Challenge Projects
8 COUNTING SYLLABLES FOR HAIKU POETRY
Japanese Haiku
Project #15: Counting Syllables
The Strategy
Managing Missing Words
The Count Syllables Code
A Program to Check Your Program
Summary
Further Reading
Practice Project: Syllable Counter vs. Dictionary File
9 WRITING HAIKU WITH MARKOV CHAIN ANALYSIS
Project #16: Markov Chain Analysis
The Strategy
The Pseudocode
The Training Corpus
Debugging
The Code
The Results
Summary
Further Reading
Challenge Projects
10 ARE WE ALONE? EXPLORING THE FERMI PARADOX
Project #17: Modeling the Milky Way
The Strategy
Estimating the Number of Civilizations
Selecting Radio Bubble Dimensions
Generating a Formula for the Probability of Detection
The Probability-of-Detection Code
Building the Graphical Model
Results
Summary
Further Reading
Practice Projects
Challenge Projects
11 THE MONTY HALL PROBLEM
Monte Carlo Simulation
Project #18: Verify vos Savant
Project #19: The Monty Hall Game
Summary
Further Reading
Practice Project: The Birthday Paradox
12 SECURING YOUR NEST EGG
Project #20: Simulating Retirement Lifetimes
The Strategy
The Pseudocode
Finding Historical Data
The Code
Using the Simulator
Summary
Further Reading
Challenge Projects
13 SIMULATING AN ALIEN VOLCANO
Project #21: The Plumes of Io
A Slice of pygame
The Strategy
The Code
Running the Simulation
Summary
Further Reading
Practice Project: Going the Distance
Challenge Projects
14 MAPPING MARS WITH THE MARS ORBITER
Astrodynamics for Gamers
Project #22: The Mars Orbiter Game
The Strategy
Game Assets
The Code
Summary
Challenge Projects
15 IMPROVING YOUR ASTROPHOTOGRAPHY WITH PLANET STACKING
Project #23: Stacking Jupiter
The pillow Module
Working with Files and Folders
The Video
The Strategy
The Code
Summary
Further Reading
Challenge Project: Vanishing Act
16 FINDING FRAUDS WITH BENFORD’S LAW
Project #24: Benford’s Law of Leading Digits
The Dataset
The Strategy
The Code
Summary
Further Reading
Practice Project: Beating Benford
Challenge Projects
APPENDIX PRACTICE PROJECT SOLUTIONS
Chapter 1: Silly Name Generator
Chapter 2: Finding Palingram Spells
Chapter 3: Solving Anagrams
Chapter 4: Decoding American Civil War Ciphers
Chapter 5: Encoding English Civil War Ciphers
Chapter 6: Writing in Invisible Ink
Chapter 8: Counting Syllables for Haiku Poetry
Chapter 10: Are We Alone? Exploring the Fermi Paradox
Chapter 11: The Monty Hall Problem
Chapter 13: Simulating an Alien Volcano
Chapter 16: Finding Frauds with Benford’s Law
INDEX
← Prev
Back
Next →
← Prev
Back
Next →