Skip to Content
Data Structures and Algorithms in Java, 2nd Edition
book

Data Structures and Algorithms in Java, 2nd Edition

by Robert Lafore
September 2017
Intermediate to advanced
800 pages
23h 19m
English
Sams
Content preview from Data Structures and Algorithms in Java, 2nd Edition

15. When to Use What

In this chapter we briefly summarize what we’ve learned so far, with an eye toward deciding what data structure or algorithm to use in a particular situation.

This chapter comes with the usual caveats. Of necessity, it’s very general. Every real-world situation is unique, so what we say here may not be the right answer to your problem. This chapter is divided into these somewhat arbitrary sections:

• General-purpose data structures: arrays, linked lists, trees, hash tables

• Specialized data structures: stacks, queues, priority queues, graphs

• Sorting: insertion sort, Shellsort, quicksort, mergesort, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Data Structures and Algorithms in Java, 6th Edition

Data Structures and Algorithms in Java, 6th Edition

Michael T. Goodrich, Roberto Tamassia

Publisher Resources

ISBN: 9780134849775