This repository contains the implementation and analysis for Assignment 2 of an Artificial Intelligence course.
The project focuses on applying search algorithms and evolutionary techniques to solve optimization and positioning problems using Python.
The assignment is structured around three core approaches:
- Local Search (Hill Climbing) for iterative optimization
- Genetic Algorithms for population-based search
- A real-world optimization problem (Driver Positioning)
Each section includes both implementation and analysis of algorithm behavior.
- Implemented multiple hill climbing strategies and analyzed convergence behavior
- Developed a complete genetic algorithm pipeline (selection, crossover, mutation, evolution)
- Modeled and solved a real-world optimization problem using AI techniques
- Performed comparative evaluation of different approaches
AI-Assignment-2/
│
├── notebooks/
│ ├── local_Search.ipynb
│ ├── genetic_algo.ipynb
│ └── real_world.ipynb
│
├── report/
│ └── ai_assignment_2_report.pdf
│
├── docs/
│ ├── methodology.md
│ ├── results.md
│ └── assumptions.md
│
├── requirements.txt
├── README.md
├── LICENSE
└── .gitignore
- Python 3
- NumPy
- Jupyter Notebook
# Clone the repository
git clone https://github.com/whozahm3d/AI-Assignment-2.git
# Navigate into the project
cd AI-Assignment-2
# Install dependencies
pip install -r requirements.txt
# Launch Jupyter Notebook
jupyter notebookOpen any notebook inside the notebooks/ directory.
Detailed methodology, analysis, and results are available in:
/report/ai_assignment_2_report.pdf
- Understanding of local search algorithms and their limitations
- Exploration of exploration vs exploitation trade-offs
- Implementation of genetic algorithms from scratch
- Application of AI techniques to a real-world problem
Ali Ahmad
BS Data Science
This project is licensed under the MIT License. See the LICENSE file for details.