Leanpub Header

Skip to main content

Foundations of Computing

An Accessible Introduction to Formal Languages

An accessible, practical approach to formal languages with an introduction to computability.

Minimum price

$25.00

$45.00

You pay

$45.00

Author earns

$36.00
$

...Or Buy With Credits!

You can get credits with a paid monthly or annual Reader Membership, or you can buy them here.
PDF
EPUB
WEB
About

About

About the Book

A textbook for upper-division Computer Science majors covering formal languages and automata with an introduction to computability. Intended to give CS majors a solid foundation in the Theory of Computation without being overly formal mathematically, while retaining the rigor of the material. It has been classroom tested since 2016 with good success.

Share this book

Installments completed

10 / 10

Author

About the Author

Charles D. Allison

Professor Allison has degrees in mathematics and twenty years experience as a professional software engineer. He has been at UVU since 2001, specializing in programming languages, software design, mathematical foundations of computing, scientific computing, C++, and Python. He has over 100 publications, including two C++ books, and a textbook on the Theory of Computation.

Contents

Table of Contents

Foreword

Preface

Introduction

  1. Formal Languages
  2. Finite State Machines
  3. Exercises
  4. Chapter Summary
  5. Regular Languages

Finite Automata

  1. Where Are We?
  2. Chapter Objectives
  3. Deterministic Finite Automata
  4. Exercises
  5. Non-Deterministic Finite Automata
  6. Equivalence of NFAs and DFAs
  7. NFAs and Complements
  8. Exercises
  9. Minimal Automata
  10. Exercises
  11. Machines with Output
  12. Computer Arithmetic
  13. Lexical Analysis
  14. Minimal Mealy Machines
  15. Exercises
  16. Chapter Summary

Regular Expressions and Grammars

  1. Where Are We?
  2. Chapter Objectives
  3. Regular Expressions
  4. Exercises
  5. Equivalence of Regular Expressions and Regular Languages
  6. From Regular Expression to NFA
  7. From NFA to Regular Expression
  8. Exercises
  9. Regular Grammars
  10. Left-Linear Grammars
  11. Exercises
  12. Chapter Summary

Properties of Regular Languages

  1. Where Are We?
  2. Chapter Objectives
  3. Closure Properties
  4. Computing Set Operations
  5. Exercises
  6. Decision Algorithms
  7. Exercises
  8. Infinite Regular Languages and a “Pumping Theorem”
  9. Exercises
  10. Chapter Summary
  11. Context-Free Languages

Pushdown Automata

  1. Where Are We?
  2. Chapter Objectives
  3. Adding a Stack to Finite Automata
  4. Exercises
  5. Pushdown Automata and Determinism
  6. Exercise
  7. Chapter Summary

Context-Free Grammars

  1. Where Are We?
  2. Chapter Objectives
  3. Context-Free Grammars and Derivations
  4. Simplifying Grammars
  5. Exercises
  6. Derivation Trees and Ambiguous Grammars
  7. Operator Precedence
  8. Operator Associativity
  9. Expression Trees
  10. Exercises
  11. Equivalence of PDAs and CFGs
  12. From CFG to PDA
  13. From PDA to CFG (Special Case)
  14. From PDA to CFG (General Case)
  15. Exercises
  16. Chapter Summary

Properties of Context-Free Languages

  1. Where Are We?
  2. Chapter Objectives
  3. Chomsky Normal Form
  4. Removing Lambda
  5. Removing Unit Productions
  6. Chomsky Normal Form Rules
  7. Exercises
  8. Closure Properties
  9. Closure Properties of DCFLs
  10. Exercises
  11. Decision Algorithms
  12. Is a CFL Empty or Infinite?
  13. Exercises
  14. Infinite CFLs and Another Pumping Theorem
  15. Exercises
  16. Chapter Summary
  17. Recursively Enumerable Languages

Turing Machines

  1. Where Are We?
  2. Chapter Objectives
  3. Prelude
  4. Queue Machines
  5. Exercise
  6. The Standard Turing Machine
  7. Subroutines
  8. Halting
  9. Exercises
  10. Programming Exercise
  11. Variations on Turing Machines
  12. The Universal Turing Machine
  13. Non-Deterministic TM = Deterministic TM
  14. Programming Exercise
  15. Chapter Summary

The Landscape of Formal Languages

  1. Where Are We?
  2. Chapter Objectives
  3. Recursively Enumerable Languages
  4. A Non-Recursive, RE Language
  5. Context-Sensitive Languages
  6. Properties of Recursively Enumerable Languages
  7. Exercises
  8. Unrestricted Grammars
  9. Context-Sensitive Grammars
  10. Equivalence of Unrestricted Grammars and Turing Machines
  11. Exercises
  12. The Chomsky Hierarchy
  13. Countable Sets
  14. Uncountable Sets
  15. Chapter Summary

Computability

  1. Chapter Objectives
  2. The Halting Problem
  3. Reductions and Undecidability
  4. Exercises
  5. Chapter Summary

Glossary

Bibliography

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub