




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Solutions to an ai assignment, covering topics such as search algorithms (hill-climbing, a*, branch-and-bound) and the peas model for ai agents. It includes detailed explanations and examples for various scenarios, such as flood prediction, covid-19 detection, pothole filling, greenhouse management, and gas leak detection. The document also addresses neural network design for disease diagnosis, comparing single and multiple network approaches. This material is useful for students studying artificial intelligence and machine learning, providing practical insights into algorithm application and agent design principles. A comprehensive overview of ai problem-solving techniques and agent design principles, making it a valuable resource for students and practitioners in the field.
Typology: Exams
1 / 8
This page cannot be seen from the preview
Don't miss anything!





path from your start position (S) to your goal (G), and so you split up and each try a different search technique. You and your friends always break ties in lexicographic order.
. i) One of your friend Tom decides to try Hill-Climbing using an extended list, because it seems like the easy way out. What is the final path that Tom will find? S->I->K->G ii)How many times will Tom need to backtrack, show your workings. 3 Times ii) James suggests that you use an A* search using both the heuristic and an extended list, show James tree like solution. S|B|I|K|G iii)What is the final path that James will find? S->B->I->K->G iv)Kamau is still skeptical about the results so far. he proposes a branch-and-bound search instead. Will Kamau search produce the same path as James? If so, explain why. If not, explain why not Kamau’s branch-and-bound search may produce the same path as James’ A search. Both method explore the search in a systematic way, but branch-and-bound uses bounding functions to prune branches that are unlikely to lead the goal, which can make it more efficient.*
o Greenhouse environment (temperature, humidity, CO2 levels) o Types of crops being grown o External weather conditions (temperature, light, rain, etc.) o Soil conditions and water supply
each node
the year 2023, A set of features (e.g., temperature, height) have been also extracted for each patient. Your goal is to decide whether a new visiting patient has any of diabetes, heart disease, or Alzheimer disease (a patient can have one or more of these diseases).As an Machine learning expert ,you have decided to use a neural network to solve this problem which has two choices: either to train a separate neural network for each of the diseases or to train a single neural network with one output neuron for each disease, but with a shared hidden layer. Which method do you think will be appropriate given the above scenario? Justify your answer. Given the scenario, training a single neural network with one output neuron for each disease (diabetes, heart disease, and Alzheimer’s disease), but with a shared hidden layer would be the more appropriate method. Here’s the reasoning behind this choice:
the graphs explain why the heuristic values shown are not valid for A*. Note the differences in the graphs at nodes F and E. I. II. To explain why the heuristic values shown for both graphs are not valid for A , let's first recall the fundamental rule for a heuristic to be valid for A search:
For A* to work correctly, the heuristic must be admissible , which means it must never overestimate the true cost to reach the goal. This ensures that A* always finds the shortest path. Additionally, the heuristic should be consistent (also known as the monotonicity property), meaning that the heuristic value at a node should satisfy the following condition: h(n)≤c(n,a,n′)+h(n′)h(n) \leq c(n, a, n') + h(n')h(n)≤c(n,a,n′)+h(n′) Where:
overlook an optimal path through E and choose a less optimal path due to the heuristic misleading the search.