Java Data Structures Reference

20,947

Solution 1

Is there a reason to think that Java's implementation is different (in terms of complexity) than a generic, language agnostic implementation? In other words, why not just refer to a general reference on the complexity of various data structures:

NIST Dictionary of Algorithms and Data Structures

But, if you insist on Java-specific:

Java standard data structures Big O notation

Java Collections cheatsheet V2 (dead link, but this is the first version of the cheatsheet)

Solution 2

The most comprehensive Java Collections overview is here

http://en.wikiversity.org/wiki/Java_Collections_Overview

Solution 3

I couldn't see this particular resource mentioned here, i've found it of great use in the past. Know Thy Complexities!

http://bigocheatsheet.com/

Solution 4

I found very useful The Collections Framework page, expecially the Outline of the Collections Framework, where every interface/class is breeefly described. Unfortunately there's no big-O information.

Share:
20,947

Related videos on Youtube

Samuel Carrijo
Author by

Samuel Carrijo

Updated on July 09, 2022

Comments

  • Samuel Carrijo
    Samuel Carrijo almost 2 years

    Can anyone give me references of a web site containing a summary of the main Java data structures, and their respective complexity in time (for some given operations like add, find, remove), e.g. Hashtables are O(1) for finding, while LinkedLists are O(n). Some details like memory usage would be nice too.

    This would be really helpful for thinking in data structures for algorithms.

    • palantus
      palantus almost 15 years
      Other than the Javadocs?
    • Samuel Carrijo
      Samuel Carrijo almost 15 years
      Yeah, java docs have them all separated, and complexity isn't really easy to find. I don't want details of each, just a summary with time complexities
  • Admin
    Admin almost 14 years