06.03.2013 Views

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

d=0<br />

d=1<br />

d=2<br />

d=3<br />

Fig. 12.16: A hierarchical plan with branching factor b=3, primitive steps<br />

s = 3 in a plan <strong>and</strong> depth (d) of the tree=3.<br />

On the other h<strong>and</strong>, if we try to solve it by a linear planner it has to generate as<br />

many as<br />

bs + (bs) 2 + (bs) 3 +…+ (bs) d-1<br />

= O (bs) d .<br />

■→■→■<br />

■<br />

■<br />

■<br />

■<br />

■<br />

Further for linear ordering of these plans, we require a significant amount of<br />

search among these plans. The total search complexity for linear ordering will<br />

be O (bs) 2d . On the other h<strong>and</strong>, in a hierarchical plan, at each level, we select 1<br />

out of b plans. So, the time required to eliminate inconsistent plans is O (b)<br />

<strong>and</strong> the time required to find a linear ordering at each level is O (s). So, if<br />

there are d levels, the ordering time of plans is O (s .d). Now, we can compare<br />

the ordering time of a hierarchical planner with respect to a linear planner.<br />

The factor of improvement of a hierarchical planner with respect to a linear<br />

planner can be given by {(b s) 2d - (s d) / (s d) } =( b 2 d s 2 d –1 / d) –1.<br />

■<br />

■<br />

■ ■<br />

■<br />

■<br />

■<br />

■→■→■<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!