Question

1) Consider the directed graph below. “S” is the start state and “G1,G2,G3” are 3 goal...

1) Consider the directed graph below. “S” is the start state and “G1,G2,G3” are 3 goal states. In traversing the graph one can move only in the direction indicated by the arrows. The numbers on the edges indicate the step-cost for traversing that edge. The numbers in the nodes represent the estimated cost to the nearest goal state. In the following you will be asked to search this graph using various search strategies. When you work out your answer, please provide a list of nodes that have been checked (removed from the fringe) in the order that they were visited. If there is a tie in the ordering of the fringe nodes one should break the tie by checking the tied nodes in alphabetical order. Use the following notation: [Node,Parent,Path-cost]. For example [A,S,3]. a) Draw the first 3 levels of the search tree, where the start state is not counted as a level. For the following search strategies answer all of the following questions: -Trace out the steps of ....... search. -Provide the solution path from the start state to the goal state. -What is the total cost to the goal? -Is this guaranteed to be the optimal solution? -What is the time and space complexity of ...... search? b) A* search. c) “greedy best first search”. d) depth-first search. e) uniform cost search.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

G2 ا ) فياIn Tree or graph search there are two types of searching algorithm. Uninformed Search /Blind search and Informed Search / Heuristic Search. A* search and " greedy best-first search" belong to  Informed Search category. Uninformed Search contains depth fir search and uniform cost search.

To reach the goal cost calculation.

G1=3+7+2=12, [A,S,3],[E,A,7],[G1,E,2]

G2= 1+2+1+5=9, [B,S,1],[F,B,2],[D,F,1],[G1,D,5]

G3=1+2+11=14.[B,S,1],[C,B,2],[G3,C,11]

that means to reach goals we have to traverse those paths.

1.A* Search Explore A node first because of h(B)=1, that means the least heuristic expand first. where h(A)=9 and h(C)=3. It is an optimal algorithm.

2. Greedy best-first search also not optimal Search. Not always give an optimal solution. It is not also complete.

3. DFS is not optimal as well as not complete. It Works on LIFO, expand [A, S,3] then [G1, A 10] to reach G1.

4. Uniform cost search expands B first because it works with the lowest cost   [B, S,1]. That leads to the lowest cost goal, It is an optimal search algorithm.

A* Search

Expand node based on an estimate of total path cost through node
Evaluation function f(n) = g(n) + h(n)
– g(n) = cost so far to reach n
– h(n) = estimated cost from n to goal
– f(n) = estimated total cost of the path through n to goal
The efficiency of the search will depend on the quality of heuristic h(n)

Yes , A* search is optimal in nature
– Also optimally efficient:
No other optimal algorithm will expand fewer nodes, for a given heuristic

The time complexity of A* depends on the heuristic. In the worst case of an unbounded search space, the number of nodes expanded is exponential in the depth of the solution (the shortest path) d.: Time Complexity is: O(bd), where b is the branching factor

Greedy Best first search

A special case of best-first search
– Uses h(n) = heuristic function as its evaluation function
– Expand the node that appears closest to goal

It is not Optimal search Algorithm

Time Complexity :
– O(bm ), can generate all nodes at depth m before finding a solution
– m = maximum depth of search space, b branching factor

DFS (Depth-first search)

Expand the deepest unexpanded node
• Implementation:
– For DFS, fringe is a Last-in-first-out (LIFO) stack
– new successors go at the top of the stack

Time Complexity
– maximum tree depth = m
– assume (worst case) that there is
1 goal leaf at the RHS at depth d
– so DFS will generate O (bm )

DFS is not optimal Search.

Uniform cost search

Uniform cost search always expands the node on the fringe with minimum cost g(n). If costs are equal (or almost equal) will behave similarly to BFS.

Time Complexity: In uniform cost search time complexity O( b ^ [1 + floor(C*/e)]) . "read as b to the power[1 + floor(C*/e)]".  C* be the cost of the optimal solution and b is the branching factor.

Uniform cost search​​​​​​​ also is optimal in nature.

Add a comment
Know the answer?
Add Answer to:
1) Consider the directed graph below. “S” is the start state and “G1,G2,G3” are 3 goal...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • and the arrows represent possible action transitions. S is the start state and there are two goal states: G1 and G1. The cost of each action is given by the number next to the arrow. Each state is la...

    and the arrows represent possible action transitions. S is the start state and there are two goal states: G1 and G1. The cost of each action is given by the number next to the arrow. Each state is labelled by an identifying name (S, A-F, G1, G2, H) and also a number. The number is the value of a heuristic function, which gives an estimate of the cost of getting to the nearest goal from that node. (a) Consider the...

  • Problem 2: Consider a state space where the start state is number 1 and the successor...

    Problem 2: Consider a state space where the start state is number 1 and the successor function for state n returns two states, numbers 2n and 2n a). Draw the porion ates 1 to 15. (b). Suppose the goal state is l. List the order in which nodes will be visited for breadth-first search, depth-limited search with limit 3, and iterative deepening search.

  • 2 pts Consider a state space where the start state is number 1 and the successor...

    2 pts Consider a state space where the start state is number 1 and the successor function for state n returns two states, numbers 2n and 2n+1 Draw the portion of the state space for states 1 to 15 (1 pt) Suppose the goal state is 11. List the order in which nodes will be visited for depth-limited search with limit 3 (0.5 pt), and iterative deepening search. (0.5 pt Figure 1 Set all nodes to "not visited" q new...

  • Consider a state space where the start state is number 1 and each state k has two successors

    Question5: [9 points] Consider a state space where the start state is number 1 and each state k has two successors: numbers 2k and 2k+1.a. Draw the portion of the state space for states 1 to 15 .b. Suppose the goal state is 11 . List the order in which nodes will be visited for breadth first search, depth-limited search with limit 3 , and iterative deepening search.c. How well would bidirectional search work on this problem? What is the branching...

  • Consider the following directed graph for each of the problems: 1. Perform a breadth-first search on...

    Consider the following directed graph for each of the problems: 1. Perform a breadth-first search on the graph assuming that the vertices and adjacency lists are listed in alphabetical order. Show the breadth-first search tree that is generated. 2. Perform a depth-first search on the graph assuming that the vertices and adjacency lists are listed in alphabetical order. Classify each edge as tree, back or cross edge. Label each vertex with its start and finish time. 3. Remove all the...

  • e) ?∗ search with the same heuristic. I. Let the states' space (v1, ..., v7) and...

    e) ?∗ search with the same heuristic. I. Let the states' space (v1, ..., v7) and the transition function illustrated in the following graph : an arc from the state vi to the state v; means that v; is one of the successor of vi; the label of each arc designates the transition's cost between two states. And h is the heuristic function. 12 l'igure 1 For each of the following graph search strategies, work out the order in which...

  • The following is an adjacency matrix of a directed graph. Start from vertex D, write down...

    The following is an adjacency matrix of a directed graph. Start from vertex D, write down the order of node visited in Breadth-First- Search (BFS) traversal. (Enter the nodes in order in the following format: [A B C D E F G]) Adjacenc y Matrix ABCDEFG A 1111 000 BO00 0101 C0111010 DO 0 1 0 0 1 1 E 0 1 0 1 000 F 100 1 100 G0000100

  • Consider the following undirected weighted graph where you want to find a path from A to...

    Consider the following undirected weighted graph where you want to find a path from A to G. A / \ B --- C \ / \ G --- H Weights (costs) of the edges are W(AB) = 1; W(AC) = 3; W(BC) = 1; W(BG) = 9; W(CG) = 5; W(CH) = 2; W(GH) = 1, and the heuristic estimates (h(n)) to the goal node, G, are h(A) = 5, h(B) = 4, h(C) = 1, h(G) = 0, h(H)...

  • e. Consider wil wuuu lappen U WULU WIU Laiguu LU 1 AIL formance of the search...

    e. Consider wil wuuu lappen U WULU WIU Laiguu LU 1 AIL formance of the search agent and of the reflex agent vary with n? 3.21 Prove each of the following statements, or give a counterexample: a. Breadth-first search is a special case of uniform-cost search. b. Depth-first search is a special case of best-first tree search. c. Uniform-cost search is a special case of A* search. Chapter 3. Solving Prol 3.22 Compare the performance of 5. Apply A to...

  • Need help with a number guessing game in java 1) You should store prior guessses in...

    Need help with a number guessing game in java 1) You should store prior guessses in a linked list, and the nodes in the list must follow the order of prior guesses. For example, if the prior guesses are 1000, 2111, 3222 in that order, the nodes must follow the same order 2) You should store the candidate numbers also in a linked list, and the nodes must follow the order of numbers (i.e. from the smallest to the largest)....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT