Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2018/04/17 もくもく会 #112 #119

Open
maraigue opened this issue Apr 17, 2018 · 5 comments
Open

2018/04/17 もくもく会 #112 #119

maraigue opened this issue Apr 17, 2018 · 5 comments

Comments

@maraigue
Copy link
Contributor

No description provided.

@maraigue
Copy link
Contributor Author

文書検索の索引システムの続き。
「サーバにクエリを投げると、それを含んでいる可能性のあるファイル名一覧を返す」というのができたので、それを実際に検索する部分を実装する。

@ghost
Copy link

ghost commented Apr 17, 2018

『アルゴリズムイントロダクション』を読みます。これまでつまみ食いしてきましたが,今日は頭から読もうと思います。

@ignisan
Copy link
Contributor

ignisan commented Apr 17, 2018

WebAssemblyを触る

@maraigue
Copy link
Contributor Author

ファイル名を受け取って検索する部分は実装したのだが、索引の効果が薄すぎる(クエリを含んでいるファイルが出てくるのは問題ないのだが、それに混ざって出てくるクエリを実際には含んでいないファイルの割合がかなり多い)。

想定される問題点:現状の索引は「ファイル中のすべての連続する2バイト」を格納する形式を採用しているのだが、そのためにマルチバイト文字の索引付けについてほとんど効果が出ていない。

次回にやる解決策:索引の単位を2バイト単位ではなく、2文字単位とする。そのために、C++で扱えるマルチバイト文字取り扱いのライブラリを検討する(UTF-8さえ使えればよいのだが)。

@ghost
Copy link

ghost commented Apr 17, 2018

ヒープソートのところまで読んだ。途中でMITのオープンコースウェアに動画があるのを発見したので,こちらも少し視聴。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants