I am learning about the science of algorithms and I'm studying some problems with their optimum algorithm. The problem I describe below is one of them.
I need a lower and an upper bound of its runtime complexity. What is its optimum algorithm? I don't need any implementation.
Problem:
Given a set of coordinates in a $2$-dimensional plane, how do we find the area of a minimum square which includes all the points? The points can exist on the border also. And the square's orientation doesn't have to be parallel to the Cartesian axes.
For example,
Consider the points $(-1,1)$, $(1,3)$, $(0,2)$, $(-2,2)$. The minimum square height to cover these points is $2\sqrt{2}$. Hence the area is $8$.
I hope that the explanation is clear. Thank you in advance!