# thealgorithms/java architecture

> Architecture diagram of the GitHub repository thealgorithms/java, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/thealgorithms/java
- Repository: https://github.com/thealgorithms/java

## Overview

The Algorithms - Java is an educational collection of independent Java implementations, not a single application with a shared runtime pipeline. A learner selects an algorithm, supplies its inputs through that implementation’s API, and uses its computed result. The graph groups representative algorithm families and core data structures; it does not imply calls between them. The README describes the collection broadly, while sampled source confirms only selected implementations, so unsampled capabilities are represented by their exact source directories without inferred wiring.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_paradigms["Algorithm families"]
  node_backtracking["Backtracking"]
  node_divide_conquer["Divide and conquer"]
  node_dynamic_programming["Dynamic programming"]
  node_greedy["Greedy algorithms"]
  node_graphs["Graph algorithms"]
end

subgraph group_structures["Data structures"]
  node_caches["Caches<br/>[LIFOCache.java]"]
  node_hashmap["Hash maps<br/>[HashMap.java]"]
  node_linked_lists["Linked lists"]
  node_queues["Queues<br/>[Queue.java]"]
  node_trees["Trees<br/>[BinaryTree.java]"]
end

subgraph group_text["Text and encoding"]
  node_compression["Compression<br/>[HuffmanCoding.java]"]
  node_ciphers["Ciphers"]
  node_conversions["Conversions"]
  node_strings["String search"]
end

subgraph group_math["Math and science"]
  node_bitwise["Bit manipulation"]
  node_matrix["Matrix operations"]
  node_geometry["Computational geometry"]
end

subgraph group_utilities["Search and utilities"]
  node_search["Search algorithms"]
  node_streaming["Streaming filters"]
  node_misc["Other algorithms"]
end

node_learner(("Learner"))

click node_backtracking "https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/backtracking"
click node_divide_conquer "https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/divideandconquer"
click node_dynamic_programming "https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/dynamicprogramming"
click node_greedy "https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/greedyalgorithms"
click node_graphs "https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/datastructures/graphs"
click node_caches "https://github.com/thealgorithms/java/blob/master/src/main/java/com/thealgorithms/datastructures/caches/LIFOCache.java"
click node_hashmap "https://github.com/thealgorithms/java/blob/master/src/main/java/com/thealgorithms/datastructures/hashmap/hashing/HashMap.java"
click node_linked_lists "https://github.com/thealgorithms/java/blob/master/src/main/java/com/thealgorithms/datastructures/lists/SinglyLinkedList.java"
click node_queues "https://github.com/thealgorithms/java/blob/master/src/main/java/com/thealgorithms/datastructures/queues/Queue.java"
click node_trees "https://github.com/thealgorithms/java/blob/master/src/main/java/com/thealgorithms/datastructures/trees/BinaryTree.java"
click node_compression "https://github.com/thealgorithms/java/blob/master/src/main/java/com/thealgorithms/compression/HuffmanCoding.java"
click node_ciphers "https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/ciphers"
click node_conversions "https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/conversions"
click node_strings "https://github.com/thealgorithms/java/blob/master/src/main/java/com/thealgorithms/strings/HorspoolSearch.java"
click node_bitwise "https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/bitmanipulation"
click node_matrix "https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/matrix"
click node_geometry "https://github.com/thealgorithms/java/blob/master/src/main/java/com/thealgorithms/geometry/BentleyOttmann.java"
click node_search "https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/searches"
click node_streaming "https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/streaming"
click node_misc "https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/others"

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_backtracking,node_divide_conquer,node_dynamic_programming,node_greedy,node_graphs toneBlue
class node_caches,node_hashmap,node_linked_lists,node_queues,node_trees toneAmber
class node_compression,node_ciphers,node_conversions,node_strings toneMint
class node_bitwise,node_matrix,node_geometry toneRose
class node_search,node_streaming,node_misc,node_learner toneIndigo
```

## Components

### Algorithm families

- [Backtracking](https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/backtracking): `src/main/java/com/thealgorithms/backtracking`
- [Divide and conquer](https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/divideandconquer): `src/main/java/com/thealgorithms/divideandconquer`
- [Dynamic programming](https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/dynamicprogramming): `src/main/java/com/thealgorithms/dynamicprogramming`
- [Greedy algorithms](https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/greedyalgorithms): `src/main/java/com/thealgorithms/greedyalgorithms`
- [Graph algorithms](https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/datastructures/graphs): `src/main/java/com/thealgorithms/datastructures/graphs`

### Data structures

- [Caches](https://github.com/thealgorithms/java/blob/master/src/main/java/com/thealgorithms/datastructures/caches/LIFOCache.java): `src/main/java/com/thealgorithms/datastructures/caches/LIFOCache.java`
- [Hash maps](https://github.com/thealgorithms/java/blob/master/src/main/java/com/thealgorithms/datastructures/hashmap/hashing/HashMap.java): `src/main/java/com/thealgorithms/datastructures/hashmap/hashing/HashMap.java`
- [Linked lists](https://github.com/thealgorithms/java/blob/master/src/main/java/com/thealgorithms/datastructures/lists/SinglyLinkedList.java): `src/main/java/com/thealgorithms/datastructures/lists/SinglyLinkedList.java`
- [Queues](https://github.com/thealgorithms/java/blob/master/src/main/java/com/thealgorithms/datastructures/queues/Queue.java): `src/main/java/com/thealgorithms/datastructures/queues/Queue.java`
- [Trees](https://github.com/thealgorithms/java/blob/master/src/main/java/com/thealgorithms/datastructures/trees/BinaryTree.java): `src/main/java/com/thealgorithms/datastructures/trees/BinaryTree.java`

### Text and encoding

- [Compression](https://github.com/thealgorithms/java/blob/master/src/main/java/com/thealgorithms/compression/HuffmanCoding.java): `src/main/java/com/thealgorithms/compression/HuffmanCoding.java`
- [Ciphers](https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/ciphers): `src/main/java/com/thealgorithms/ciphers`
- [Conversions](https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/conversions): `src/main/java/com/thealgorithms/conversions`
- [String search](https://github.com/thealgorithms/java/blob/master/src/main/java/com/thealgorithms/strings/HorspoolSearch.java): `src/main/java/com/thealgorithms/strings/HorspoolSearch.java`

### Math and science

- [Bit manipulation](https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/bitmanipulation): `src/main/java/com/thealgorithms/bitmanipulation`
- [Matrix operations](https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/matrix): `src/main/java/com/thealgorithms/matrix`
- [Computational geometry](https://github.com/thealgorithms/java/blob/master/src/main/java/com/thealgorithms/geometry/BentleyOttmann.java): `src/main/java/com/thealgorithms/geometry/BentleyOttmann.java`

### Search and utilities

- [Search algorithms](https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/searches): `src/main/java/com/thealgorithms/searches`
- [Streaming filters](https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/streaming): `src/main/java/com/thealgorithms/streaming`
- [Other algorithms](https://github.com/thealgorithms/java/tree/master/src/main/java/com/thealgorithms/others): `src/main/java/com/thealgorithms/others`

### Other components

- **Learner**
