You have probably met the Tents puzzle â sometimes called Tents and Trees â in a newspaper or a phone app. A grid is dotted with trees, and your job is to pitch a tent next to each one. The rules sound almost too gentle to matter:
- Every tree gets exactly one tent, placed in an adjacent square (up, down, left or right).
- Every tent belongs to exactly one tree, so tents and trees pair up one-to-one.
- No two tents touch â not even diagonally.
- The numbers along the edges say how many tents go in each row and column.
Most of the time you solve it by comfortable, local reasoning: this tree only has one free neighbor, so the tent must go there; this row already has its quota, so the rest is empty. But every so often the easy deductions run out and you are left guessing. That little gap â between what the rules force and what you must search for â is exactly the line that separates the easy problems from the hardest ones in all of computer science.
Comments
Loading comments...