Artificial Intelligence (BD107) – Assignment Week 2 – Syafira Aulia

Artificial Intelligence 26/27 – BD107

Module Question 2

  1. Explain the primary difference between an uninformed and an informed search algorithm.
  2. In what scenario would Depth-First Search be more efficient than Breadth-First Search?
  3. What is a heuristic function, and what role does it play in the A* algorithm?
  4. Describe a real-world problem (e.g., GPS navigation) that can be solved using a search algorithm.

Answer:

  1. The main difference between uninformed and informed search algorithms is the information they use to find a solution. Uninformed search does not have any additional knowledge about which path is more likely to lead to the goal. It only uses the information given in the problem, such as the current state and possible actions. Examples include Breadth-First Search (BFS) and Depth-First Search (DFS). In contrast, informed search uses additional information, usually called a heuristic, to decide which path should be explored first. This can help the algorithm reach the goal more efficiently. A common example is the A* algorithm, which uses both the cost of the path and an estimate of the remaining distance to the goal. In simple terms, uninformed search explores without knowing which direction is better, while informed search uses additional information to guide the search toward the goal.
  2. Depth-First Search (DFS) can be more efficient than Breadth-First Search (BFS) when the solution is located deep in the search tree and there are many possible paths to explore at each level. DFS explores one path as deeply as possible before going back and trying another path. Because of this, it can reach a deep solution without having to explore all the nodes at the levels above it. For example, if we are searching through a large maze and the correct path is located deep in one direction, DFS may find the solution faster and use less memory than BFS. However, DFS is not always more efficient because its performance depends on the structure of the problem and where the solution is located.
  3. A heuristic function is a method used to estimate the cost or distance from the current state to the goal. It provides additional information that helps a search algorithm decide which path is more promising to explore. In the A* algorithm, the heuristic function is used to estimate the remaining cost from the current node to the goal. A* combines this estimate with the actual cost of the path that has already been taken. This allows A* to prioritize paths that appear to be more efficient and can help it find a solution without exploring unnecessary paths. For example, in GPS navigation, the straight-line distance between the current location and the destination can be used as a heuristic. It gives the algorithm an estimate of how far the destination is, helping it decide which routes to explore first.
  4. One real-world problem that can be solved using a search algorithm is finding the best route using GPS navigation. When we enter a destination, the GPS system needs to search through different possible roads to find a suitable route from the starting point to the destination. A search algorithm can compare different routes based on factors such as distance, travel time, or road conditions. For example, the A* algorithm can use the current distance traveled and an estimated distance to the destination to help find an efficient route. This allows the system to avoid exploring every possible road and focus on routes that are more likely to lead to the destination. Therefore, search algorithms are useful in GPS navigation because they help computers make decisions about which route to take among many possible choices.

Module 2 – Explanatory Video click here

 

Status: 100% telah selesai di kerjakan

Keterangan: Module question dan penjelasan jawaban nya sudah tersedia dalam bentuk vidio animasi.

Previous Post Previous Post
Newer Post Newer Post

Leave a comment