Designing Admissible Heuristics for A*
A* is only as good as its heuristic. Understanding what makes a heuristic safe, and how to build […]
A* is only as good as its heuristic. Understanding what makes a heuristic safe, and how to build […]
Many puzzles, such as Sudoku and N-Queens, are constraint satisfaction problems. Plain backtracking can solve them, but adding […]
Minimax lets a program choose moves in two-player games by assuming both sides play as well as they […]
The right amount of narration tracks the value of the information to your listener, not the volume of […]
Bit manipulation problems have a reputation for feeling like party tricks — clever one-liners that either occur to […]
Greedy solutions are easy to propose and dangerously easy to get wrong, because “this seems like the obviously […]
Some operations are expensive occasionally and cheap the rest of the time, and describing their cost accurately requires […]
Recursive code doesn’t have “loops” in the textbook sense, but it has an analogous mechanical technique: draw (or […]
The most common way complexity shows up in interview code is through loops, and the mechanical rule is […]
Plenty of problems ask you to answer the same kind of question over and over against data that […]