Skip to main content
  • Textbook
  • © 2010

Algorithms and Programming

Problems and Solutions

Authors:

  • This second edition contains problems from new topics including suffix trees, games and strategies, and Huffman coding
  • Good undergraduate introduction to programming course, especially one which is mathematically motivated
  • May also be used as a textbook in a graduate course on the analysis of algorithms and/or compiler construction
  • The "problem and solution" style makes the reader think through the programming process, making the book ideal for students in the classroom setting or for self study

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book USD 69.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (16 chapters)

  1. Front Matter

  2. Variables, expressions, assignments

    • Alexander Shen
    Pages 1-31
  3. Generation of combinatorial objects

    • Alexander Shen
    Pages 33-48
  4. Tree traversal (backtracking)

    • Alexander Shen
    Pages 49-59
  5. Sorting

    • Alexander Shen
    Pages 61-76
  6. Finite-state algorithms in text processing

    • Alexander Shen
    Pages 77-82
  7. Data types

    • Alexander Shen
    Pages 83-101
  8. Recursion

    • Alexander Shen
    Pages 103-118
  9. Recursive and non-recursive programs

    • Alexander Shen
    Pages 119-128
  10. Graph algorithms

    • Alexander Shen
    Pages 129-137
  11. Pattern matching

    • Alexander Shen
    Pages 139-165
  12. Games analysis

    • Alexander Shen
    Pages 167-183
  13. Optimal coding

    • Alexander Shen
    Pages 185-193
  14. Set representation. Hashing

    • Alexander Shen
    Pages 195-202
  15. Sets, trees, and balanced trees

    • Alexander Shen
    Pages 203-220
  16. Context-free grammars

    • Alexander Shen
    Pages 221-242
  17. Left-to-right parsing (LR)

    • Alexander Shen
    Pages 243-256
  18. Back Matter

About this book

Algorithms and Programming is primarily intended for use in 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. The book is easily readable by a student taking a basic introductory course in computer science as well as useful for a graduate-level course in the analysis of algorithms and/or compiler construction.

Each self-contained chapter presents 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.

Reviews

From the reviews:

"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." — Computing Reviews

"Overall...the book is well done. I recommend it to teachers and those wishing to sharpen their data structure and compiler skills." — SIGACT News

From the reviews of the second edition:

“An excellent source of material for college students … and for their teachers. … it contains a lot of great information for the computer science student. Ideally, students would acquire this book in their freshman year and begin using it as soon as they learn the basics of procedural programming. They will then find this book an excellent companion, as they develop their analytical and programming skills throughout the curriculum. … This book is a delight to read and work with. I highly recommend it.” (Edgar R. Chavez, ACM Computing Reviews, December, 2010)

Authors and Affiliations

  • de Marseille (LIF) CNRS, Université de la Méditerranée, Laboratoire d’Informatique Fondamentale, Marseille CX 13, France

    Alexander Shen

Bibliographic Information

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book USD 69.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access