This repository is a curated collection of Data Structures & Algorithms implemented in Java.
Whether you're preparing for:
🎯 Coding Interviews
🎯 Placement Exams
🎯 Competitive Programming
🎯 University Coursework
this repository provides clean and beginner-friendly implementations of important algorithms.
| Algorithm | Time Complexity |
|---|---|
| Linear Search | O(n) |
| Binary Search | O(log n) |
| Algorithm | Best | Average | Worst |
|---|---|---|---|
| Bubble Sort | O(n) | O(n²) | O(n²) |
| Selection Sort | O(n²) | O(n²) | O(n²) |
| Insertion Sort | O(n) | O(n²) | O(n²) |
| Merge Sort | O(n log n) | O(n log n) | O(n log n) |
| Quick Sort | O(n log n) | O(n log n) | O(n²) |
| Heap Sort | O(n log n) | O(n log n) | O(n log n) |
| Counting Sort | O(n+k) | O(n+k) | O(n+k) |
| Radix Sort | O(nk) | O(nk) | O(nk) |
✅ Activity Selection
✅ Fractional Knapsack
✅ Job Scheduling
✅ Dijkstra's Algorithm
✅ Prim's Algorithm
✅ Longest Common Subsequence (LCS)
✅ Matrix Chain Multiplication
✅ 0/1 Knapsack
✅ N-Queens Problem
📦 Java-Algorithms-and-Data-Structures
├── 🔍 Searching
├── ⚙️ Sorting Problems
├── 🎯 Greedy Problems
├── ⚡ Dynamic Problems
└── 🌳 Branch and Bound Problems# Clone repository
git clone https://github.com/Rekshit/Data-Analysis-and-Algorithm.git
# Open project
cd Data-Analysis-and-Algorithm
# Compile
javac FileName.java
# Run
java FileNameSearching
↓
Sorting
↓
Greedy Algorithms
↓
Dynamic Programming
↓
Branch & Bound
✔ Problem Solving
✔ Algorithm Design
✔ Time Complexity Analysis
✔ Java Programming
✔ Dynamic Programming
✔ Greedy Strategies
✔ Optimization Techniques