Which number of dimensions, though? Is there an effective bound? Otherwise it is hard to suggest the problem as an example.

The number of dimensions is one of the variables in the problem.