- Adding elementary sorts and some applications of LinkedList, Trees.
- Implementing Graph Algorithms
- Testing Data Structures with huge data.
Structures is a nice compilation of abstract data structures that we could think of! Since its inception, it is growing slowly into a huge collection of ADT journal. We have written the intuition behind developing each structure in its code as introductory comment block with algorithmic analysis and its merits and de-merits.
The de-merits of one ADT leads to the motivation of creating another ADT, so you will find it like a chain story to browse :P
Well, the repostiory is like a journal. You can browse inside src
folder and will see the code arranged in intuitive package structure. And, each code file consists of good amount of writeup at the top to motivate the reader about the intuition behind the class design. But, sometimes a table of contents become handy, so checkout the wiki to get a formal introduction to the repo.
PS: You may find that we are not strictly following the JAVA coding conventions (for instance, not using camelcase for variable names everywhere, using u, v, w somewhere etc). This is because, our focus is not on JAVA, but on algorithms, and we want to preserve mathematical expressions for known things, so that it remains connected to Robert Sedgewick book's literature.
'Structures' is a maven project. You must have any latest version of Git, Maven installed in your machine and follow the steps mentioned below:
Clone the repo using command and generate eclipse project files:
>$ git clone https://github.com/ashish-chopra/Structures.git
>$ cd Structures // browse inside Structures
>$ mvn eclipse:eclipse // it generates the eclipse specific files, so that
// you can import this project into eclipse
Then, Import the project into Eclipse by File > Import > Existing Maven Project into Workspace.
I have also tried Visual Studio Code as well. Make sure you installed the Java Langauge Support extension from RedHat for VS code and then follow following commands to get started:
>$ git clone https://github.com/ashish-chopra/Structures.git
>$ cd Structures # browse inside Structures
>$ code . # open up VS code editor at this location
Inside editor, open the command window using Ctrl+Shift+p
, type configure build task
, select maven
; it will create .vscode
folder inside your project structure. Then, use command Ctrl+Shift+b
to run the project maven build. I will add the support for other commands soon. If you can, then send me a pull request.
Other commands:
>$ mvn compile // this will only compile your source code
>$ mvn test // this will run the test suite
>$ mvn javadoc:javadoc // generates the java doc of all the ADTs
// at "Structures/target/site/apidocs/"
You can run these commands from command line inside your Structures
directory.
Or using Eclipse by right click Structures > Run As > Maven Build ...
Structures' bugs are tracked using Github Issue tracker system.
Please use issue tracker for following purpose:
- to raise a bug request; do include specific details and label it appropriately.
- to suggest any improvements in existing features.
- to suggest new features or structures or applications.
Awesome! Please fork the repository and make a new branch & start developing a new feature or fix a bug. Then send a pull request. I will review the submissions and add it into the main repo.
And also thanks to many contributors for their submissions. I will keep adding them here.
- Shivam Goel
- Havan Aggarwal
- Gansai
- Tarun Jain
- Miguel Stephane
The code is licensed under MIT License. Let's have fun coding together!