Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/odhithsen/data-structures-java

🧑‍💻 Java implementations of various data structures and their associated operations.
https://github.com/odhithsen/data-structures-java

data-structures java

Last synced: 7 days ago
JSON representation

🧑‍💻 Java implementations of various data structures and their associated operations.

Awesome Lists containing this project

README

        

# Data Structures & Operations in Java

Welcome to the **Data Structures & Operations** repository! This repository contains Java implementations of various data structures and their associated operations. It is designed for students, developers, and anyone interested in understanding and working with data structures in Java.

## Table of Contents

- [Introduction](#introduction)
- [Disclaimer](#disclaimer)
- [Technologies](#technologies)
- [Data Structures Implemented](#data-structures-implemented)
- [Getting Started](#getting-started)
- [License](#license)

## Introduction

This repository provides Java implementations of fundamental data structures such as Arrays, Linked Lists, Stacks, Queues, Trees, Graphs, and more. Each data structure comes with basic operations (e.g., insertion, deletion, traversal) and, in some cases, more advanced algorithms (e.g., sorting, searching, graph traversal algorithms).

## Disclaimer

**Note:** This repository is a work in progress and is not yet completed. The code and documentation are subject to changes as new features and improvements are added. While the current implementations are functional, some data structures and operations may still be under development. Please use the code with caution and feel free to contribute if you have suggestions or improvements.

### TODO

- [x] Add Arrays section
- [x] Add Linked Lists section
- [x] Add Stacks section
- [x] Add Queues section
- [ ] Add Trees section
- [ ] Add Graphs section
- [ ] Add Hashing section

## Technologies

- Java

[![Built with](https://skillicons.dev/icons?i=java)](/)

## Data Structures Implemented

The following data structures are implemented in this repository:

- **Arrays**
- Dynamic Array
- 2D Arrays
- **Linked Lists**
- Singly Linked List
- Doubly Linked List
- Circular Linked List
- **Stacks**
- Stack using Array
- Stack using Linked List
- **Queues**
- Queue using Array
- Queue using Linked List
- Circular Queue
- Priority Queue
- **Trees**
- Binary Tree
- Binary Search Tree (BST)
- AVL Tree
- Heap (Min-Heap, Max-Heap)
- **Graphs**
- Adjacency Matrix
- Adjacency List
- Depth-First Search (DFS)
- Breadth-First Search (BFS)
- **Hashing**
- Hash Table
- Hash Map

## Getting Started

### Prerequisites

To run the code in this repository, you need to have Java Development Kit (JDK) installed on your machine. You can download it from [here](https://www.oracle.com/java/technologies/javase-downloads.html).

### Cloning the Repository

```bash
git clone https://github.com/odhithSen/data-structures-java.git
cd data-structures-java
```

### Running the Code

```bash
javac DataStructureExample.java
java DataStructureExample
```

## License
Please review the [license](https://github.com/odhithSen/data-structures-java/blob/main/LICENSE.txt)