Skip to content

j-ordanos/IDA-star-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IDA* Pathfinding Algorithm - Implementation & Analysis

Python 3.8+ License: MIT AI Algorithm Tests

📖 Overview

This repository contains a comprehensive implementation and analysis of the Iterative Deepening A* (IDA*) search algorithm. IDA* is a memory-optimized version of the A* algorithm that combines depth-first search with iterative deepening and heuristic cost bounding, making it ideal for problems with large state spaces or memory constraints.

🎯 Key Features

  • Complete IDA* Implementation with Manhattan distance heuristic
  • Memory-Efficient Design - O(d) space complexity vs A*'s O(b^d)
  • Optimal Pathfinding for grid-based environments with obstacles
  • Comprehensive Examples including IDA* vs A* comparison
  • Performance Visualization with ready-to-use graphs
  • Educational Documentation with algorithm explanations

📊 Performance Analysis

1. Memory Usage Comparison: IDA* vs A*

Memory Usage Comparison
IDA demonstrates significantly lower memory consumption due to its depth-first search nature, storing only the current path rather than all visited nodes.*

2. Execution Time vs Node Expansions

Execution Analysis
This visualization shows the trade-off between computation time and search efficiency across different problem complexities.

3. Threshold Iterations Across Test Cases

Threshold Analysis
Illustrates how IDA progressively increases cost bounds across different maze configurations until a solution is found.*

🏗️ Algorithm Details

How IDA* Works

1. Set initial threshold = heuristic(start, goal)
2. Perform depth-first search with f-costthreshold
3. If goal not found, increase threshold to min exceeded f-cost
4. Repeat until solution found or proven impossible

👥 Course & Group Information

Course: CoSc4011 – Introduction to Artificial Intelligence
Project: IDA* Pathfinding Algorithm – Implementation & Analysis

Group Members

No. Student Name ID Number
1 Yordanos Zewge UGR/5072/15
2 Samuel Ayine UGR/6563/13
3 Iyasu Walelign UGR/6553/15
4 Halid Zeyne UGR/0755/15

About

Implementation and performance analysis of the IDA* (Iterative Deepening A*) pathfinding algorithm with comparisons against A*.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages