Efficient comparison of 100.000 vectors

后端 未结 10 2050
礼貌的吻别
礼貌的吻别 2021-01-31 21:20

I save 100.000 Vectors of in a database. Each vector has a dimension 60. (int vector[60])

Then I take one and want present vectors to the user in order of decreasing sim

10条回答
  •  长发绾君心
    2021-01-31 22:02

    Without going trough all entries? It seems not possible. The only thing you can do is to do the math at insert time (remembering that equivalence http://tex.nigma.be/T%2528A%252CB%2529%253DT%2528B%252CA%2529.png :P ).

    This avoids your query to check the list against all the other lists at execution time (but it could heavily increase the space needed for the db)

提交回复
热议问题