Challenge: Grid Search

Challenge yourself by solving a house searching problem using grid search.

Problem statement

You are searching for a house considering the following two criteria:

  • x1x_1: This is the distance (in km) of the house from the nearest hospital. x1<0x_1 < 0 means that the house is located on the left side (or neighborhood) of the hospital and x10x_1 \geq 0 means that the house is located on the right side (or neighborhood) of the hospital.

  • x2 ...