Skip to Content
アルゴリズムクイックリファレンス 第2版
book

アルゴリズムクイックリファレンス 第2版

by George T. Heineman, Gary Pollice, Stanley Selkow, 黒川 利明, 黒川 洋
December 2016
Intermediate to advanced
440 pages
9h 44m
Japanese
O'Reilly Japan, Inc.
Content preview from アルゴリズムクイックリファレンス 第2版
132
5
章 探索
値が
100,000
から
2,000,000
10,000
ステップ)の
m
について試行した。
k
3
ハッシュ関数を用いた。結果を図5-6に示す。
M
を変えたときの偽陽性率
ブルームフィルタの
m
ビットのサイズ
語FP
ランダムFP
計算したFP
図5-6 ブルームフィルタによる偽陽性率の例
前もって偽陽性率をある小さな値より小さくしたいとわかっているなら、挿入す
る要素数
n
を推定した後で、
k
m
とを設定する必要がある。文献では、
(1
(1
1/m)
kn
)
1/2
に近い値にすることを勧めている。例えば、単語表に対して偽陽性
率を
10
%より小さいと保証するには、
m
を少なくとも
1,120,000
、すなわち全体で
131,250
バイトに設定する必要がある。
5.5
 二分探索木
既に述べたように、メモリ上の配列の
二分探索
は効率的だ。しかし、探索の元の
集まりが頻繁に変化するようだと、整列済み配列では探索の効率性が大幅に低下す
る。動的な集まりに対して、妥当な探索性能を維持するためには、異なるデータ構
造を採用する必要がある。
ハッシュに基づいた探索
は動的な集まりを扱えるが、リ
ソース使用の効率性の観点からハッシュ表のサイズを小さくしすぎてしまう。要素
の個数については前もって何もわからないので、ハッシュ表の適切なサイズが選べ
ないのだ。またハッシュ表では要素を整列順に取り出すことができない。
別の戦略として、探索木を使って動的集合を格納できる。探索木は、メモリ上で
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

scikit-learn、Keras、TensorFlowによる実践機械学習 第2版

scikit-learn、Keras、TensorFlowによる実践機械学習 第2版

Aurélien Géron, 下田 倫大, 長尾 高弘
Rクイックリファレンス 第2版

Rクイックリファレンス 第2版

Joseph Adler, 大橋 真也, 木下 哲也
プログラミングRust 第2版

プログラミングRust 第2版

Jim Blandy, Jason Orendorff, Leonora F. S. Tindall, 中田 秀基
Rではじめるデータサイエンス

Rではじめるデータサイエンス

Hadley Wickham, Garrett Grolemund, 黒川 利明, 大橋 真也

Publisher Resources

ISBN: 9784873117850Other