Блог пользователя rahul_1234

Автор rahul_1234, история, 7 лет назад, По-английски

Given a set of restaurants (the number being quite large) and its geographical location(x,y) , you are allowed to do an significant amount of pre-processing on it. Now suppose there are x customers located at position (s,t), design an efficient algorithm to find the k nearest restaurants to these customers.

  • Проголосовать: нравится
  • -2
  • Проголосовать: не нравится

»
7 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Could you please define what you mean by nearest? Does it mean that the total sum of distances to all the k restaurants is minimized?