logo

Crowdly

Browser

Add to Chrome

ITI0210 Tehisintellekti ja masinõppe alused (2025/26 sügis)

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?

View this question

What is the path length of the solution of greedy search? You can calculate it by adding up the lengths of each segment.

View this question

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.

View this question

We have a simplified road map of Romania. Length of each road segment is shown.

rumeenia kaart

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:

rumeenia teepikkused

Simulate the steps of the A* search with pen and paper (or a spreadsheet). The following table will help:

ng(n)h(n)f(n)
S0253253

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:

  1. select the row from the table with lowest f(n) that you haven't used yet. Mark it as "used".
  2. If on this row the last city is "B" then the row contains the solution and its path length.
  3. if it's not, find the cities you can move to from the last city. Add a row for each of these neighbor nodes to the table

Table after adding the neighbors of the initial state:

ng(n)h(n)f(n)
S0253253
SF99176275
SR80193273
SO151380531
SA140366506
Why does the node column contain SF, SR, etc?

Each row is a node in the search tree. To represent the node properly we write down the city and the path leading to it. Sibiu-Oradea-Zerind and Sibiu-Arad-Zerind are different paths, so we cannot use just "Z" to represent them.

Keep building the table. What is the solution of A* (enter in this format: ABCD)?

View this question

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.

tolmuimejamaailm

The agent's actions:

ActionCostEffect
Right1Moves right (to room B)
Left1Moves left (to room A)
Vacuum1Room becomes clean
NoOp0-

At each step the agent receives sensor data as input: 1.) room, A or B 2.) the state, clean or dirty. After that the agent performs one action. The agent's program:

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?

View this question

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.

tolmuimejamaailm

The agent's actions:

ActionCostEffect
Right1Moves right (to room B)
Left1Moves left (to room A)
Vacuum1Room becomes clean
NoOp0-

At each step the agent receives sensor data as input: 1.) room, A or B 2.) the state, clean or dirty. After that the agent performs one action. The agent's program:

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?

View this question

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:

StateReward
dirty0
clean1

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...

0%
0%
0%
0%
View this question

The given program cleans the rooms quickly and then just wastes energy, moving back and forth. How to improve the performance?

View this question

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.

View this question

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.

tolmuimejamaailm

The agent's actions:

ActionCostEffect
Right1Moves right (to room B)
Left1Moves left (to room A)
Vacuum1Room becomes clean
NoOp0-

At each step the agent receives sensor data as input: 1.) room, A or B 2.) the state, clean or dirty. After that the agent performs one action. The agent's program:

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?

View this question

Want instant access to all verified answers on moodle.taltech.ee?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome