WA3 - 1, 2, 3, 4, 6, 7, 8, 14, 15, 26, 45 Depth Search: 1,...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1. (see secondary documents) 2. For the tree below, show your path of nodes and the number of nodes you need to visit if you follow the protocol from right to left for the respective search strategies of a. Breadth-first search 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 b. Depth-first search 1, 2, 5, 6, 10, 11, 3, 7, 12, 13 c. Depth-first iterative deepening search (for this strategy, first assume a tree depth of 1, and then increase the search to a depth of 2, etc.) 1, 2, 3, 4, 1, 2, 5, 6, 3, 7, 4, 8, 9, 1, 2, 5, 6, 10, 11, 1, 3, 7, 12,13,1, 4, 8, 9 3. H1: Breadth search: 1, 2, 3, 4, 6, 7, 8, 12, 13, 14, 15, 26, 45 Depth Search: 1, 2, 3, 6, 12, 24, 41, 42, 13, 25, 7, 14, 26, 45 H2: Breadth search:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1, 2, 3, 4, 6, 7, 8, 14, 15, 26, 45 Depth Search: 1, 2, 3, 6, 7, 14, 26, 45 H3: Breadth search: 1, 2, 3, 4, 6, 7, 8, 14, 15, 26, 45 Depth Search: 1, 2, 3, 6, 7, , 14, 26, 45 4. (see secondary documents) 5. A. We have an empty queue and our state is currently at the root node. If we have reached the goal state then report that we have, or else sort the successors of our current state and then add them to the front of the queue. If the queue is empty then report a failure. Move the first item in the queue to the current state and then remove the first item from the queue. B. STEP STATEQueue Notes 1 A (nada) 2 A B,C 3 B D, C, C 4 D F,E,C,C 5 F E,C,C Arrived...
View Full Document

This note was uploaded on 12/30/2009 for the course COS 451 taught by Professor Jasonlitz during the Summer '09 term at Thomas Edison State.

Page1 / 2

WA3 - 1, 2, 3, 4, 6, 7, 8, 14, 15, 26, 45 Depth Search: 1,...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online