2 2 votes Consider the depth-limited search algorithm with depth limit f.If the only goal state exists at depth $d$ then which of the following statement(s) is/are correct?If $\mathrm{f>d}$ then it is complete but not optimal.If $\mathrm{f>d}$ then it is not complete and not optimal.If $\mathrm{f}<\mathrm{d}$ then it is complete but not optimal.If $\mathrm{f}<\mathrm{d}$ then it is not complete and not optimal. Artificial Intelligence goclasses_da_ai_tw3 goclasses artificial-intelligence two-marks multiple-selects + – GO Classes 387 views answer comment Share Follow Print See all 2 Comments 2 2 Comments reply Roshan21k commented Feb 10, 2025 reply Follow flag i think Option A might not need to be true "If the only goal state exist at depth d" , Meaning only one goal state is there and the path returned will be a unique path. So its the optimal path we can get.Only Option D will be correct. Please correct me if i'm wrong. 4 4 replyShare Hussain9660 commented Feb 11, 2025 reply Follow flag @GO Classes Sir here what is f is infinite. Then DFS with limit infinte will not be complete na? We dont have any upper bound on f once its greater than d it can be anything. So how is option A correct. I think option B is more suitable. 0 0 replyShare Please log in or register to add a comment.
2 2 votes If f > d, then the goal will be visited at some point hence the algorithm is complete. But it is clearly not optimal like depth first search. If f < d, then the goal will never be visited and hence the algorithm is not even complete. Sajeev_Yadav answered Jan 15, 2025 Sajeev_Yadav comment Share Follow See 1 comment 1 1 comment reply WAK LORD commented Jan 11 reply Follow flag there is only one path to goal 0 0 replyShare Please log in or register to add a comment.
1 1 vote Logic for the option (A) to be correct:-If all step costs are equal, the path to d is indeed the shortest(optimal).However, if step costs vary (e.g., one edge has a weight of 10 and another has 1), DFS/DLS might find a path to depth d that has a much higher cumulative cost than a different path to that same node. Since DLS doesn't compare path costs, it isn't "Optimal."Hence in totality(weighted or unweighted graph) it is not optimal. rasimp#1619 answered Feb 12 rasimp#1619 comment Share Follow 0 reply Please log in or register to add a comment.