Classic Computer Science Problems in Java
David Kopec
  • MEAP began June 2020
  • Publication in Early 2021 (estimated)
  • ISBN 9781617297601
  • 225 pages (estimated)
  • printed in black & white
Sharpen your coding skills by exploring established computer science problems! Classic Computer Science Problems in Java challenges you with time-tested scenarios and algorithms. You’ll work through a series of exercises based in computer science fundamentals that are designed to improve your software development abilities, improve your understanding of artificial intelligence, and even prepare you to ace an interview. As you work through examples in search, clustering, graphs, and more, you'll remember important things you've forgotten and discover classic solutions to your "new" problems!

About the Technology

In any computer science classroom you’ll find a set of tried-and-true algorithms, techniques, and coding exercises. These techniques have stood the test of time as some of the best ways to solve problems when writing code, and expanding your Java skill set with these classic computer science methods will make you a better Java programmer.

About the book

Classic Computer Science Problems in Java will teach you techniques to solve common-but-tricky programming issues. You’ll explore foundational coding methods, fundamental algorithms, and artificial intelligence topics, all through code-centric Java tutorials and computer science exercises. As you tackle examples for search algorithms, graph algorithms, neural networks, and more, you’ll see how cutting-edge fields like AI remain based in the core disciplines of computer science. With each new problem you crack, you’ll better understand the connections between classic computer science and the real-world challenges you face every day.
Table of Contents detailed table of contents

0 Introduction

0.1 Why should Java programmers read this book?

0.2 What is a classic computer science problem?

0.3 What kinds of problems are in this book?

0.4 Who is this book for?

0.5 Java versioning, source code repository, and Eclipse

0.6 No graphics, no UI code, just the standard library

0.7 Part of a series

1 Small Problems

1.1 The Fibonacci sequence

1.1.1 A first recursive attempt

1.1.2 Utilizing base cases

1.1.3 Memoization to the rescue

1.1.4 Keep it simple, Fibonacci

1.1.5 Generating Fibonacci numbers with a stream

1.6 Trivial compression

1.7 Unbreakable encryption

1.3.1 Getting the data in order

1.3.2 Encrypting and decrypting

1.4 Calculating pi

1.5 The Towers of Hanoi

1.5.1 Modeling the towers

1.5.2 Solving The Towers of Hanoi

1.6 Real-world applications

1.7 Exercises

2 Search Problems

2.1.1 Storing DNA

2.1.4 A generic example

2.2 Maze solving

2.2.1 Generating a random maze

2.2.2 Miscellaneous maze minutiae

2.3 Missionaries and cannibals

2.3.1 Representing the problem

2.3.2 Solving

2.4 Real-world applications

2.5 Exercises

3 Constraint Satisfaction Problems

3.1 Building a constraint-satisfaction problem framework

3.2 The Australian map-coloring problem

3.3 The eight queens problem


3.6 Circuit board layout

3.7 Real-world applications

3.8 Exercises

4 Graph Problems

5 Genetic Algorithms

6 K-Means Clustering

7 Fairly Simple Neural Networks

8 Adversarial Search

9 Miscellaneous Problems


Appendix A: Glossary

Appendix B: Further Resources

What's inside

  • Recursion, memoization, bit manipulation
  • Search algorithms
  • Constraint-satisfaction problems
  • Graph algorithms
  • K-means clustering
  • Genetic algorithms
  • Simple neural networks
  • Adversarial search

About the reader

For intermediate Java programmers

About the author

David Kopec is an assistant professor of computer science and innovation at Champlain College in Burlington, Vermont. He is the author of Dart for Absolute Beginners (Apress, 2014), Classic Computer Science Problems in Swift (Manning, 2018), and Classic Computer Science Problems in Python (Manning, 2019).

placing your order...

Don't refresh or navigate away from the page.
Manning Early Access Program (MEAP) Read chapters as they are written, get the finished eBook as soon as it’s ready, and receive the pBook long before it's in bookstores.
print book $24.99 $49.99 pBook + eBook + liveBook
Additional shipping charges may apply
Classic Computer Science Problems in Java (print book) added to cart
continue shopping
go to cart

eBook $19.99 $39.99 3 formats + liveBook
Classic Computer Science Problems in Java (eBook) added to cart
continue shopping
go to cart

Prices displayed in rupees will be charged in USD when you check out.

FREE domestic shipping on three or more pBooks