Coder Social home page Coder Social logo

data-structure's Introduction

java collection implementations for the data structures talked about in the book DATA STRUCTURES AND ALGORITHM ANALYSIS IN JAVA, THIRD EDITION

Build Status Javadocs Maven Central

Yep, this can be seen as another collection library like java collection framework, but it provides other data structure implementations like Splay Tree, AVL Tree, Red-black Tree etc. it includes:

  • List:

    LinkedList

    ArrayList

    Stack

    Queue

  • Tree:

    Basic Tree

    Binary Search Tree

    AVL tree

    Splay Tree

    Red-black tree

    TreeMap

    TreeSet

    HashMap based on Red-black Tree

    BTree

    SkipList

    Treap

    Tries

  • Heap:

    Basic Min-Heap

    Leftist Heap

    Skew Heap

    Binomial Heap

    DoubleEndedHeap

  • Hash:

    Basic Hash Table by seperate chain

    Hash Table by linear probing, quadratic probing

    Perfect Hash Table

    Cuckoo Hash Table

    Hopscotch Hash Table

    Extensible Hash Table

  • BitMap:

    BitMap

  • External memory data structure(they can hold long key and long value):

    HashTable

    BPlusTree

Features

Most of class provides few but really necessary functions, the benefit about this is that it can make code clean, more readable and more extensible. I also make data structures separate, For example, hashmap could be built on red-black tree array and this is what java hashmap does, but it turns out java hash map implementation is very very complicated, if you go into java hash map source code since jdk 1.8, then you can get 2390 line codes, and my hash map implementation only has 160 line. This is another reason I built this.

Documentations

For a detailed api documentation, please go to api docs.

Examples

data-structure's People

Contributors

xiaobogaga avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.