5

Algorithm Efficiencies

Developers focused on ensuring their Java applications perform at a high level must consider the efficiency of individual algorithms. We do not judge an algorithm’s efficiency by its lines of code; rather, we make this judgment after analyzing test results.

This chapter is intended to help you learn how to choose the right algorithm for any given requirement. It also covers the concept of time complexity to include strategies for reducing time complexity. We will also focus on lean and efficient code. This chapter also emphasizes the importance of algorithm testing.

This chapter covers the following main topics:

  • Algorithm selection
  • Low time complexity
  • Testing algorithms for efficiency

By the end of this chapter, you ...

Get High Performance with Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.