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

4. Stacks and Queues

In this chapter we’ll examine three data storage structures: the stack, the queue, and the priority queue. We’ll begin by discussing how these structures differ from arrays; then we’ll examine each one in turn. In the last section, we’ll look at an operation in which the stack plays a significant role: parsing arithmetic expressions.

A Different Kind of Structure

There are significant differences between the data structures and algorithms we’ve seen in previous chapters and those we’ll look at now. We’ll discuss three of these differences before we examine the new structures in detail.

Programmer’s Tools ...

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