any idea?# JobHunting - 待字闺中
a*y
1 楼
There is a set of 9 students and 3 schools Every school can be alloted at
max 3 students .Every school and student has its coordinates .Now we have to
allot student in such a way that the sum of distance from all the student
to the school should be minimum.
穷举太费时了
而且第k次应该不是建立在min(k-1 )次的,想想有可能学校之间距离很长,有点学生
离第一个比其他的近一点,但是其他的学生可能离这两个学校更远,
max 3 students .Every school and student has its coordinates .Now we have to
allot student in such a way that the sum of distance from all the student
to the school should be minimum.
穷举太费时了
而且第k次应该不是建立在min(k-1 )次的,想想有可能学校之间距离很长,有点学生
离第一个比其他的近一点,但是其他的学生可能离这两个学校更远,