Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following pseudo - code defines a control loop for a practical reasoning ( BDI ) agent: 1 . B : = B 0 ;

The following pseudo-code defines a control loop for a practical reasoning (BDI) agent:
1. B := B0;
2.
I := I0;
3. while true do
4.
get next percept \rho ;
5. B := brf(B,\rho );
6.
D := options(B, I );
7.
I := filter (B, D, I );
8.\pi := plan(B , I , Ac);
9. while not (empty(\pi ) or succeeded (I , B) or believeimpossible(I , B)) do
10.
\alpha ; = head(\pi );
11.
execute(\alpha );
12.
\pi := tail (\pi );
13.
get next percept \rho ;
14.
B := brf(B,\rho );
15.
if reconsider (I , B) then
16.
D := options(B, I );
17.
I := filter (B, D, I );
18.
end if
19.
if not sound(\pi , I , B) then
20.
\pi := plan(B, I , Ac);
21.
end if
22.
end while
23. end while
(b) Recall that Practical Reasoning = deliberation + means ends reasoning. With reference to the above
code, answer the following questions:
1. What commitment protocol is used in this code?
2. What should be modified in this code if the commitment protocol Opened-minded commitment is
used?
3. What should be modified in this code if the commitment protocol Single-minded commitment is
used?
4. Assume the commitment protocol Single-minded commitment is used in the above code. When
should an agent stop to reconsider its intentions?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions