on-internet
← Community

How to optimize this IVF code for vectors in C++? [closed]

Stack Overflow ·

I'm dealing with a task to use IVF to split vectors into clusters with kmeans. However, I get time limit exceeded in 2 tests, so it needs more optimization, I would say but cannot figure out how now. Could you help me where and how to optimize? P.S.: We are only allowed to use SSE2 for some paralelism. Assignment: Inverted File An inverted file (IVF) splits the points into clusters, keeps one list of points per cluster, and searches only the clusters that can contain the answer. Building: Choose k cluster centres with k-means: start with k random points as the centres, then a few times assign

Comments

Sign in or sign up to comment and upvote.

No comments yet.