Java
Java copied to clipboard
All Algorithms implemented in Java
## Description Added a new class `ElGamalCipher.java` implementing the **ElGamal encryption and decryption algorithm**. ### Features - Implements ElGamal public-key encryption system - Supports key generation using modular arithmetic -...
### What would you like to share? Some directories use inconsistent naming conventions (e.g., Search, searching, sort). Refactor to follow consistent Java package naming — lowercase, descriptive. Example fix: Search...
### What would you like to share? Some graph algorithms (e.g., BFS, DFS, Dijkstra, Bellman–Ford) do not have JUnit test coverage. Create test cases with small sample graphs and expected...
### What would you like to share? Description: Many algorithm implementations lack documented time and space complexity. Update implementations by adding comments explaining Big-O complexity. ### Additional information _No response_
### What would you like to share? urrently, the repositories are listed without tags or labels indicating their focus areas. To improve discoverability, I suggest adding tags such as NLP,...
This PR implements the Bellman-Ford algorithm for finding shortest paths in weighted directed graphs. Key Features: ✅ Handles negative weight edges (unlike Dijkstra) ✅ Detects negative weight cycles ✅ Comprehensive...
- [ ] I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Java/blob/master/CONTRIBUTING.md). - [ ] This pull request is all my own work -- I have not plagiarized it. - [ ] All filenames are...
Added quick links section for easier navigation. - [ ] I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Java/blob/master/CONTRIBUTING.md). - [ ] This pull request is all my own work -- I have not plagiarized...
Updated contact information for questions about the repository. - [ ] I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Java/blob/master/CONTRIBUTING.md). - [ ] This pull request is all my own work -- I have not...
- [x] I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Java/blob/master/CONTRIBUTING.md). - [x] This pull request is all my own work -- I have not plagiarized it. - [x] All filenames are in PascalCase. -...