In artificial intelligence and computer science, pruning is the deliberate removal of subtrees from a search space during exploration. It is not a search algorithm itself but a meta-technique applied to algorithms like depth-first search (DFS), minimax, or Monte Carlo Tree Search (MCTS). The core mechanism involves evaluating a partial solution or game state and proving that further exploration down that path cannot improve upon the best solution found so far. This proof allows the algorithm to 'prune' that branch, dramatically reducing the number of nodes it must evaluate and thus lowering computational complexity and latency.
