Skip to main content
  • Textbook
  • © 2017

Guide to Competitive Programming

Learning and Improving Algorithms Through Contests

Authors:

  • Provides a comprehensive introduction to algorithmic problem solving in the context of programming contests
  • Describes numerous “folklore” algorithm design tricks used by experienced competitive programmers
  • Presents an accessible style designed to aid the reader in developing an intuitive understanding of why algorithms work and how to design them
  • Includes supplementary material: sn.pub/extras

Part of the book series: Undergraduate Topics in Computer Science (UTICS)

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

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 (15 chapters)

  1. Front Matter

    Pages i-xii
  2. Introduction

    • Antti Laaksonen
    Pages 1-7
  3. Programming Techniques

    • Antti Laaksonen
    Pages 9-25
  4. Efficiency

    • Antti Laaksonen
    Pages 27-36
  5. Sorting and Searching

    • Antti Laaksonen
    Pages 37-49
  6. Data Structures

    • Antti Laaksonen
    Pages 51-62
  7. Dynamic Programming

    • Antti Laaksonen
    Pages 63-75
  8. Graph Algorithms

    • Antti Laaksonen
    Pages 77-106
  9. Algorithm Design Topics

    • Antti Laaksonen
    Pages 107-117
  10. Range Queries

    • Antti Laaksonen
    Pages 119-129
  11. Tree Algorithms

    • Antti Laaksonen
    Pages 131-146
  12. Mathematics

    • Antti Laaksonen
    Pages 147-187
  13. Advanced Graph Algorithms

    • Antti Laaksonen
    Pages 189-209
  14. Geometry

    • Antti Laaksonen
    Pages 211-224
  15. String Algorithms

    • Antti Laaksonen
    Pages 225-237
  16. Additional Topics

    • Antti Laaksonen
    Pages 239-268
  17. Back Matter

    Pages 269-283

About this book

This invaluable textbook presents a comprehensive introduction to modern competitive programming. The text highlights how competitive programming has proven to be an excellent way to learn algorithms, by encouraging the design of algorithms that actually work, stimulating the improvement of programming and debugging skills, and reinforcing the type of thinking required to solve problems in a competitive setting. The book contains many “folklore” algorithm design tricks that are known by experienced competitive programmers, yet which have previously only been formally discussed in online forums and blog posts.

Topics and features: reviews the features of the C++ programming language, and describes how to create efficient algorithms that can quickly process large data sets; discusses sorting algorithms and binary search, and examines a selection of data structures of the C++ standard library; introduces the algorithm design technique of dynamic programming, and investigateselementary graph algorithms; covers such advanced algorithm design topics as bit-parallelism and amortized analysis, and presents a focus on efficiently processing array range queries; surveys specialized algorithms for trees, and discusses the mathematical topics that are relevant in competitive programming; examines advanced graph techniques, geometric algorithms, and string techniques; describes a selection of more advanced topics, including square root algorithms and dynamic programming optimization.

This easy-to-follow guide is an ideal reference for all students wishing to learn algorithms, and practice for programming contests. Knowledge of the basics of programming is assumed, but previous background in algorithm design or programming contests is not necessary. Due to the broad range of topics covered at various levels of difficulty, this book is suitable for both beginners and more experienced readers.

Reviews

“The chapters are more or less standalone. That makes this small volume a helpful reference for additional information or review of known algorithms and programming techniques. Given its practical intent, as well as the breadth of examples and references offered, this is a useful book for any practicing software engineer or developer. It would also be helpful as a supplementary text in an undergraduate programming or algorithms course.” (Nathan Carlson, Computing Reviews, October, 2018)​

Authors and Affiliations

  • Department of Computer Science, University of Helsinki, Helsinki, Finland

    Antti Laaksonen

About the author

Dr. Antti Laaksonen has worked as a teacher and researcher at the University of Helsinki and Aalto University, Finland. He has served as one of the organizers of the Finnish Olympiad in Informatics since 2008, and as the Scientific Chair of the Baltic Olympiad in Informatics in 2016. He has also coached and led the Finnish team at several international programming contests, including the International Olympiad in Informatics 2009–2016, and has established experience in teaching programming and algorithms.​

Bibliographic Information

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access