Looking for ITI0210 Tehisintellekti ja masinõppe alused (2025/26 sügis) test answers and solutions? Browse our comprehensive collection of verified answers for ITI0210 Tehisintellekti ja masinõppe alused (2025/26 sügis) at moodle.taltech.ee.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
What is the value of f(n), the path length of the solution you found?
What is the path length of the solution of greedy search? You can calculate it by adding up the lengths of each segment.
Now follow the same procedure with greedy search.
Use f(n) = h(n), everything else remains unchanged. If you used a spreadsheet you can fill the g(n) column with 0-s.
We have a simplified road map of Romania. Length of each road segment is shown.
Problem: find the path from S (Sibiu) to B (Bucharest).
We will use A* search. We need a heuristic function, for that we can use the distance of each point from the goal Bucharest:
Simulate the steps of the A* search with pen and paper (or a spreadsheet). The following table will help:
| n | g(n) | h(n) | f(n) |
|---|---|---|---|
| S | 0 | 253 | 253 |
Mark down the current node in search tree (n) and the matching path length so far g(n) and heuristic value h(n). In the initial state, Sibiu, the path so far has length 0. h(n) can be taken directly from the table of distances. f(n) = g(n) + h(n).
Then follow the algorithm:
Table after adding the neighbors of the initial state:
| n | g(n) | h(n) | f(n) |
|---|---|---|---|
| SF | 99 | 176 | 275 |
| SR | 80 | 193 | 273 |
| SO | 151 | 380 | 531 |
| SA | 140 | 366 | 506 |
The Vaccuum World contains two rooms: A and B, and an intelligent agent, the vaccuum cleaner. The task of the agent is to keep the rooms clean.
The agent's actions:
| Action | Cost | Effect |
|---|---|---|
| Right | 1 | Moves right (to room B) |
| Left | 1 | Moves left (to room A) |
| Vacuum | 1 | Room becomes clean |
| NoOp | 0 | - |
def decide_action(room, status):
if status == "dirty": return "Vacuum"
elif room == "A": return "Right"
else: return "Left"
Suppose the agent works n=10 steps from the state given in the picture above. We evaluate the performance of the agent as follows:What is the performance of the agent after 10 steps?The Vaccuum World contains two rooms: A and B, and an intelligent agent, the vaccuum cleaner. The task of the agent is to keep the rooms clean.
The agent's actions:
| Action | Cost | Effect |
|---|---|---|
| Right | 1 | Moves right (to room B) |
| Left | 1 | Moves left (to room A) |
| Vacuum | 1 | Room becomes clean |
| NoOp | 0 | - |
def decide_action(room, status):
if status == "dirty": return "Vacuum"
elif room == "A": return "Right"
else: return "Left"
Suppose the agent works n=10 steps from the state given in the picture above. We evaluate the performance of the agent as follows:What is the performance of the agent after 10 steps?What happens in a dynamic world? Let's change the conditions so that at each step, after the agent's action, there is a 25% chance per room that dirt is created there. If the room was already dirty, nothing happens.
The performance measure we used until now is no longer good. It assumes that the vaccuum cleaner always successfully cleans everywhere and so only measures the energy cost. It is slightly more realistic to include the state of the rooms:
| State | Reward |
|---|---|
| dirty | 0 |
| clean | 1 |
The formula takes the state before the agent's action.
Which agent is better now - the initial primitive agent or the agent with memory? Let's do 10 working steps from the same initial state as in the first question. The exact evaluation is difficult, but you can estimate the performance by assuming that dust is generated in both rooms at every fourth step. From the point of view of the vaccuum cleaner, the rooms will be dirty at step 1, 5, 9...
The given program cleans the rooms quickly and then just wastes energy, moving back and forth. How to improve the performance?
What could be the measured performance for an agent with memory? Let's assume the agent runs 10 steps from the same initial state, where the agent is in room A and both rooms are dirty.
The Vaccuum World contains two rooms: A and B, and an intelligent agent, the vaccuum cleaner. The task of the agent is to keep the rooms clean.
The agent's actions:
| Action | Cost | Effect |
|---|---|---|
| Right | 1 | Moves right (to room B) |
| Left | 1 | Moves left (to room A) |
| Vacuum | 1 | Room becomes clean |
| NoOp | 0 | - |
def decide_action(room, status):
if status == "dirty": return "Vacuum"
elif room == "A": return "Right"
else: return "Left"
Suppose the agent works n=10 steps from the state given in the picture above. We evaluate the performance of the agent as follows:What is the performance of the agent after 10 steps?