Skill Zuno · skillzunos.com · AI
Search & Reasoning interview questions
Prepare for Search & Reasoning interviews on Skill Zuno. This practice book covers Search & Reasoning interview questions across New, Easy, Medium, Hard, and Diff levels so you can work through real interview-style problems on skillzunos.com.
Open Search & Reasoning on Skill ZunoAlso see the Search & Reasoning tutorial.
Search and reasoning are classic AI techniques for solving problems by exploring possible states or actions to reach a goal. They underpin route planning, puzzle solving, game playing and scheduling. Interviews cover uninformed and informed search, heuristics and A*, adversarial search with minimax and alpha-beta pruning, and constraint satisfaction.
Sample Search & Reasoning interview questions
What is the difference between BFS and DFS?
Breadth-first search explores level by level and finds the shallowest goal but uses a lot of memory. Depth-first search goes deep first, uses little memory, but may not find the shortest path.
How does A* search work?
A* expands the node with the lowest f(n) = g(n) + h(n), the cost so far plus an estimate of the remaining cost. With an admissible heuristic it finds an optimal path.
What is an admissible heuristic?
One that never overestimates the true cost to reach the goal, such as straight-line distance on a road map. Admissibility guarantees A* returns an optimal solution.
What does alpha-beta pruning do?
It skips branches of the minimax game tree that cannot affect the final decision. With good move ordering it lets the search go roughly twice as deep in the same time.
What is a constraint satisfaction problem?
A problem defined by variables, possible values and constraints between them, such as Sudoku or timetabling. It is solved with backtracking plus propagation and smart variable ordering.
What you can practice
- Search & Reasoning interview questions for beginners and experienced developers
- Level-based practice: New, Easy, Medium, Hard, and Diff
- AI topics alongside Search & Reasoning on skillzunos.com