$n^2\geq 4$ children are to be placed in an $n\times n$ square. Some pairs of children dislike each other and do not want to be next to each other. Disliking is mutual, and being next to each other means being directly above/below/left/right of each other. What is the maximum $k$ such that if each child dislikes no more than $k$ other children, then a placement is always possible?
If a child dislikes $n^2-2$ other children, a placement is obviously not possible because we cannot find two children to be next to this child even if we place the child in a corner. To do better than this, we can divide the children into two groups of roughly equal size, and let each child dislike all children in the other group. Then each child dislikes about $n^2/2$ other children, and clearly we cannot place them in the square in the desired way.
