Skip to Content
Advanced Algorithms and Data Structures
book

Advanced Algorithms and Data Structures

by Marcello La Rocca
July 2021
Intermediate to advanced
768 pages
25h 23m
English
Manning Publications
Content preview from Advanced Algorithms and Data Structures

appendix D. Containers as priority queues

One of the largest subsets of data structures, probably the largest (by far), is the set of containers. A container is a collection of objects, with operations for adding, removing, and retrieving them. The difference between each kind of container revolves around

  1. The order in which the elements are extracted from the container

  2. Whether the elements need to be unique, or multiple instances are allowed

  3. Whether the container is associative, that is, if it stores plain elements or associates keys with values

  4. How elements can be searched, and what operations can be performed on the stored data

  5. Performance

Points 1-4 define an abstraction of a container, in other words, its behavior: in technical ...

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

A Common-Sense Guide to Data Structures and Algorithms

A Common-Sense Guide to Data Structures and Algorithms

Jay Wengrow
Data Structures & Algorithms in Python

Data Structures & Algorithms in Python

John Canning, Alan Broder, Robert Lafore

Publisher Resources

ISBN: 9781617295485Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link