educative.io

Educative

How to update the frequencies by difference?

In the course, you only mention how to update the frequencies with EMA and new inserted terms.

But in fact, after update the frequencies, we need to update all the node becasue of the TOP K suggestions may change.

I cannot think of an easy to accomplish this incrementally but again compute the top k suggestions from root on the whole tree.

don’t understand either @Design_Gurus could you please explain this ?