私はGmailのと同じようにしたいと思います。私のブログにはの提案が含まれていますが、タグが付いています。Gmailの「検討する」機能はどのように実装されていますか?
私は保存するタグを考えていたが、このように設定します。
と私は次のアルゴリズムを考えた:
//a blog post is published
//it has the tags "A", "B" & "C" :
if the tag set "A,B,C" doesn't exist
create it
else
add 1 to "number of times used"
と、タグを提案する:
//a blog post is being written.
//the author includes the tags "A" and "C"
//which tags should I suggest ?
find all the tags sets that contain "A" and "C"
among them, find the one with the highest "number of times used"
suggest the tags of the set not already picked (A & C)
がありますこのタスクを達成するためのより良い/スマートな方法?データベースモデルはどうですか? "A & Cを含むセット"のような検索が遅すぎるように最適化することはできますか?
「暗黙のソーシャルグラフを使用して友達を推薦する」http://research.google.com/pubs/pub36371.html –
うわー、非常にいいです:D – Manu