Algorithms and Programming

Problems and Solutions

  • Alexander Shen

Part of the Modern Birkhäuser Classics book series (MBC)

Table of contents

  1. Front Matter
    Pages i-xi
  2. Alexander Shen
    Pages 1-32
  3. Alexander Shen
    Pages 33-48
  4. Alexander Shen
    Pages 49-59
  5. Alexander Shen
    Pages 60-72
  6. Alexander Shen
    Pages 73-78
  7. Alexander Shen
    Pages 79-97
  8. Alexander Shen
    Pages 98-113
  9. Alexander Shen
    Pages 114-123
  10. Alexander Shen
    Pages 124-132
  11. Alexander Shen
    Pages 133-150
  12. Alexander Shen
    Pages 151-157
  13. Alexander Shen
    Pages 158-175
  14. Alexander Shen
    Pages 176-197
  15. Alexander Shen
    Pages 198-211
  16. Back Matter
    Pages 212-217

About this book


Algorithms and Programming is primarily intended for a first-year undergraduate course in programming. It is structured in a problem-solution format that requires the student to think through the programming process, thus developing an understanding of the underlying theory. Although the author assumes some moderate familiarity with programming constructs, the book is easily readable by a student taking a basic introductory course in computer science. In addition, the more advanced chapters make the book useful for a course at the graduate level in the analysis of algorithms and/or compiler construction.

Each chapter is more or less independent, containing classical and well-known problems supplemented by clear and in-depth explanations. The material covered includes such topics as combinatorics, sorting, searching, queues, grammar and parsing, selected well-known algorithms and much more. Students and teachers will find this both an excellent text for learning programming and a source of problems for a variety of courses.


The book is addressed both to ambitious students and instructors looking for interesting problems [and] fulfills this task perfectly, especially if the reader has a good mathematical background.   — Zentralblatt MATH

This book is intended for students, engineers, and other people who want to improve their computer skills.... The chapters can be read independently. Throughout the book, useful exercises give readers a feeling for how to apply the theory. The author provides answers to the exercises.   — Computing Reviews

This book contains a collection of problems and their solutions. Most of the problems are of the type that would be encountered in a course on data structures or compilers.... The book will prove useful for those who need homework or test questions for the areas covered by it. Many of the questions are formulated in such a way that producing variants on them can be done with ease.... Overall...the book is well done. I recommend it to teachers and those wishing to sharpen their data structure and compiler skills.   — SIGACT News


algorithm algorithms combinatorics compiler construction data structure data structures finite-state algorithms grammar and parsing graph algorithms programming recursion set representation sorting tree traversal (backtracking)

Authors and affiliations

  • Alexander Shen
    • 1
  1. 1.Institute of Problems of Information TransmissionMoscowRussia

Bibliographic information