# ashwini-chaturvedi/data-structures-algorithm architecture

> Architecture diagram of the GitHub repository ashwini-chaturvedi/data-structures-algorithm, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ashwini-chaturvedi/data-structures-algorithm
- Repository: https://github.com/ashwini-chaturvedi/data-structures-algorithm

## Overview

This repository is a Java collection of standalone data-structure and algorithm examples, including problem-specific exercises; it is not organized as one application or shared execution pipeline. A typical interaction is to run an example’s main method, provide input where supported, and see a result. The graph groups the collection by subject and highlights representative algorithms, including the indexed core modules. Most examples are independent. The tree and sampled source do not establish broader runtime links, so the graph avoids inferring calls between neighboring topics.

Main entry points: [`src/src/Array/Search_in_RotatedArray.java`](https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/Array/Search_in_RotatedArray.java) (Rotated Search), [`src/src/Backtracking/wordSearch.java`](https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/Backtracking/wordSearch.java) (Word Search), [`src/src/Graphs/BreadthFirstSearch.java`](https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/Graphs/BreadthFirstSearch.java) (Breadth-First Search), [`src/src/Graphs/DepthFirstSearch.java`](https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/Graphs/DepthFirstSearch.java) (Depth-First Search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_arrays["Arrays and Search"]
  node_rotated_search["Rotated Search"]
  node_array_examples["Array Exercises"]
  node_arraylist_examples["ArrayList Examples<br/>[ArrayList1.java]"]
  node_sliding_window["Sliding Window"]
  node_string_examples["String Algorithms"]
end

subgraph group_recursion["Backtracking and Recursion"]
  node_word_search["Word Search<br/>[wordSearch.java]"]
  node_backtracking_examples["Backtracking Exercises"]
  node_recursion_examples["Recursion Exercises"]
end

subgraph group_graphs["Graph Algorithms"]
  node_bfs["Breadth-First Search"]
  node_dfs["Depth-First Search"]
  node_graph_examples["Graph Exercises"]
end

subgraph group_structures["Data Structures"]
  node_collections["Java Collections"]
  node_queue_examples["Queue Implementations"]
  node_stack_examples["Stack Algorithms"]
  node_sorting_examples["Sorting Algorithms"]
  node_linked_list_examples["Linked Lists"]
  node_heap_examples["Heap Algorithms"]
end

subgraph group_trees["Tree Algorithms"]
  node_tree_leaf["Leaf Similarity<br/>[ec.java]"]
  node_tree_examples["Tree Exercises"]
end

node_user(("Example runner"))

node_user -->|"runs example"| node_rotated_search
node_rotated_search -->|"prints result"| node_user
node_user -->|"runs example"| node_word_search
node_word_search -->|"prints result"| node_user
node_user -->|"runs example"| node_bfs
node_bfs -->|"prints traversal"| node_user
node_user -->|"runs example"| node_dfs
node_dfs -->|"prints traversal"| node_user
node_user -->|"runs example"| node_tree_leaf
node_tree_leaf -->|"prints comparison"| node_user

click node_rotated_search "https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/Array/Search_in_RotatedArray.java"
click node_array_examples "https://github.com/ashwini-chaturvedi/data-structures-algorithm/tree/main/src/src/Array"
click node_arraylist_examples "https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/ArrayList/ArrayList1.java"
click node_word_search "https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/Backtracking/wordSearch.java"
click node_backtracking_examples "https://github.com/ashwini-chaturvedi/data-structures-algorithm/tree/main/src/src/Backtracking"
click node_recursion_examples "https://github.com/ashwini-chaturvedi/data-structures-algorithm/tree/main/src/src/Recursion"
click node_bfs "https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/Graphs/BreadthFirstSearch.java"
click node_dfs "https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/Graphs/DepthFirstSearch.java"
click node_graph_examples "https://github.com/ashwini-chaturvedi/data-structures-algorithm/tree/main/src/src/Graphs"
click node_collections "https://github.com/ashwini-chaturvedi/data-structures-algorithm/tree/main/src/src/CollectionFrameWork"
click node_queue_examples "https://github.com/ashwini-chaturvedi/data-structures-algorithm/tree/main/src/src/Queue"
click node_stack_examples "https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/Stacks/nextGreaterElement.java"
click node_sorting_examples "https://github.com/ashwini-chaturvedi/data-structures-algorithm/tree/main/src/src/Sorting"
click node_tree_leaf "https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/Trees/ec.java"
click node_tree_examples "https://github.com/ashwini-chaturvedi/data-structures-algorithm/tree/main/src/src/Trees"
click node_linked_list_examples "https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/All_Singly_LinkedList/Deleting_SinglyLinkedList.java"
click node_heap_examples "https://github.com/ashwini-chaturvedi/data-structures-algorithm/tree/main/src/src/Heaps"
click node_sliding_window "https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/SlidingWindow/firstNegativeInteger.java"
click node_string_examples "https://github.com/ashwini-chaturvedi/data-structures-algorithm/tree/main/src/src/Strings"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_rotated_search,node_array_examples,node_arraylist_examples,node_sliding_window,node_string_examples toneBlue
class node_word_search,node_backtracking_examples,node_recursion_examples toneAmber
class node_bfs,node_dfs,node_graph_examples toneMint
class node_collections,node_queue_examples,node_stack_examples,node_sorting_examples,node_linked_list_examples,node_heap_examples toneRose
class node_tree_leaf,node_tree_examples,node_user toneIndigo
```

## Components

### Arrays and Search

- [Rotated Search](https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/Array/Search_in_RotatedArray.java): `src/src/Array/Search_in_RotatedArray.java`
- [Array Exercises](https://github.com/ashwini-chaturvedi/data-structures-algorithm/tree/main/src/src/Array): `src/src/Array`
- [ArrayList Examples](https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/ArrayList/ArrayList1.java): `src/src/ArrayList/ArrayList1.java`
- [Sliding Window](https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/SlidingWindow/firstNegativeInteger.java): `src/src/SlidingWindow/firstNegativeInteger.java`
- [String Algorithms](https://github.com/ashwini-chaturvedi/data-structures-algorithm/tree/main/src/src/Strings): `src/src/Strings`

### Backtracking and Recursion

- [Word Search](https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/Backtracking/wordSearch.java): `src/src/Backtracking/wordSearch.java`
- [Backtracking Exercises](https://github.com/ashwini-chaturvedi/data-structures-algorithm/tree/main/src/src/Backtracking): `src/src/Backtracking`
- [Recursion Exercises](https://github.com/ashwini-chaturvedi/data-structures-algorithm/tree/main/src/src/Recursion): `src/src/Recursion`

### Graph Algorithms

- [Breadth-First Search](https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/Graphs/BreadthFirstSearch.java): `src/src/Graphs/BreadthFirstSearch.java`
- [Depth-First Search](https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/Graphs/DepthFirstSearch.java): `src/src/Graphs/DepthFirstSearch.java`
- [Graph Exercises](https://github.com/ashwini-chaturvedi/data-structures-algorithm/tree/main/src/src/Graphs): `src/src/Graphs`

### Data Structures

- [Java Collections](https://github.com/ashwini-chaturvedi/data-structures-algorithm/tree/main/src/src/CollectionFrameWork): `src/src/CollectionFrameWork`
- [Queue Implementations](https://github.com/ashwini-chaturvedi/data-structures-algorithm/tree/main/src/src/Queue): `src/src/Queue`
- [Stack Algorithms](https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/Stacks/nextGreaterElement.java): `src/src/Stacks/nextGreaterElement.java`
- [Sorting Algorithms](https://github.com/ashwini-chaturvedi/data-structures-algorithm/tree/main/src/src/Sorting): `src/src/Sorting`
- [Linked Lists](https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/All_Singly_LinkedList/Deleting_SinglyLinkedList.java): `src/src/All_Singly_LinkedList/Deleting_SinglyLinkedList.java`
- [Heap Algorithms](https://github.com/ashwini-chaturvedi/data-structures-algorithm/tree/main/src/src/Heaps): `src/src/Heaps`

### Tree Algorithms

- [Leaf Similarity](https://github.com/ashwini-chaturvedi/data-structures-algorithm/blob/main/src/src/Trees/ec.java): `src/src/Trees/ec.java`
- [Tree Exercises](https://github.com/ashwini-chaturvedi/data-structures-algorithm/tree/main/src/src/Trees): `src/src/Trees`

### Other components

- **Example runner**

## Connections

- Example runner → Rotated Search: runs example (evidence: `src/src/Array/Search_in_RotatedArray.java`)
- Rotated Search → Example runner: prints result (evidence: `src/src/Array/Search_in_RotatedArray.java`)
- Example runner → Word Search: runs example (evidence: `src/src/Backtracking/wordSearch.java`)
- Word Search → Example runner: prints result (evidence: `src/src/Backtracking/wordSearch.java`)
- Example runner → Breadth-First Search: runs example (evidence: `src/src/Graphs/BreadthFirstSearch.java`)
- Breadth-First Search → Example runner: prints traversal (evidence: `src/src/Graphs/BreadthFirstSearch.java`)
- Example runner → Depth-First Search: runs example (evidence: `src/src/Graphs/DepthFirstSearch.java`)
- Depth-First Search → Example runner: prints traversal (evidence: `src/src/Graphs/DepthFirstSearch.java`)
- Example runner → Leaf Similarity: runs example (evidence: `src/src/Trees/ec.java`)
- Leaf Similarity → Example runner: prints comparison (evidence: `src/src/Trees/ec.java`)
