From 6a841f0c4e65c08484a31e96a9f86e81e4ae18b5 Mon Sep 17 00:00:00 2001
From: Mohamed Adel <124937844+MuhammedAdelTaha@users.noreply.github.com>
Date: Fri, 24 Nov 2023 14:35:25 +0200
Subject: [PATCH] Update README.md
---
README.md | 69 ++++++++++++++++++++++++++++++++++++++++++++++---------
1 file changed, 58 insertions(+), 11 deletions(-)
diff --git a/README.md b/README.md
index d9fc504..7783eb3 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@ This project discusses the main differences between the different types of AI Se
- Data Structure: Stack
- Completeness: Not complete
- Optimality: Not optimal
-- Time: O(b ^ m)
+- Time: O(bm)
- Space: O(b * m)
- b is the branching factor
- m is the maximum possible search tree depth
@@ -29,8 +29,8 @@ This project discusses the main differences between the different types of AI Se
- Data Structure: Queue
- Completeness: Complete
- Optimality: Optimal
-- Time: O(b ^ s)
-- Space: O(b ^ s)
+- Time: O(bs)
+- Space: O(bs)
- b is the branching factor
- s is the level where the goal state is present
- BFS is not very well dealing with space
@@ -43,7 +43,7 @@ This project discusses the main differences between the different types of AI Se
- Optimality: Optimal
- A* Search Always finds the optimal solution
- A* Search considers the past cost and the upcoming heuristic cost
-- Manhattan distance = |x1 - x2| + |y1 - y2|
+- Manhattan distance = |x1 - x2| + |y1 - y2|
# A* Search with Euclidean heuristic
@@ -52,12 +52,59 @@ This project discusses the main differences between the different types of AI Se
- Optimality: Optimal
- A* Search Always finds the optimal solution
- A* Search considers the past cost and the upcoming heuristic cost
-- Euclidean distance = sqrt((x1 - x2) ^ 2 + (y1 - y2) ^ 2)
+- Euclidean distance = √((x1 - x2)2 + (y1 - y2)2)
# Test Cases & Comparisons
-
-
-
-
-
-
+