This repository contains all 12 essential ADA lab programs required for VTU BCSL40A course. Each program is implemented in C programming language with proper documentation, sample outputs, and time complexity analysis.
S.No | Program | Algorithm Type | Complexity | Status |
---|---|---|---|---|
1 | Kruskal's Algorithm | Greedy | O(E log E) | ✅ |
2 | Prim's Algorithm | Greedy | O(V²) | ✅ |
3a | Floyd's Algorithm | Dynamic Programming | O(V³) | ✅ |
3b | Warshall's Algorithm | Dynamic Programming | O(V³) | ✅ |
4 | Dijkstra's Algorithm | Greedy | O(V²) | ✅ |
5 | Topological Sorting | Graph Traversal | O(V + E) | ✅ |
6 | 0/1 Knapsack Problem | Dynamic Programming | O(nW) | ✅ |
7 | Greedy Knapsack | Greedy | O(n log n) | ✅ |
8 | Subset Sum Problem | Backtracking | O(2ⁿ) | ✅ |
9 | Selection Sort | Sorting | O(n²) | ✅ |
10 | Quick Sort | Divide & Conquer | O(n log n) | ✅ |
11 | Merge Sort | Divide & Conquer | O(n log n) | ✅ |
12 | N-Queens Problem | Backtracking | O(N!) | ✅ |
# Clone the repository
git clone https://github.com/yourusername/Analysis-and-Design-of-Algorithms.git
cd Analysis-and-Design-of-Algorithms/ADA\ Programs
# Compile any program
gcc program_name.c -o program_name
# Run the program
./program_name
⭐ Don't forget to star this repository if it helped you! ⭐