Submit Search
Upload
Hash Table
•
Download as PPTX, PDF
•
0 likes
•
941 views
Keisuke OTAKI
Follow
Introduction to Algorithms, section11 Hash Table.
Read less
Read more
Technology
Education
Report
Share
Report
Share
1 of 27
Download now
Recommended
Hash functions
Hash functions
tabun_muri
HashMapとは?
HashMapとは?
Trash Briefing ,Ltd
Hash mapとは
Hash mapとは
Kuroiwa Takumi
アルゴリズムとデータ構造10
アルゴリズムとデータ構造10
Kenta Hattori
アルゴリズムとデータ構造9
アルゴリズムとデータ構造9
Kenta Hattori
[アルゴリズムイントロダクション勉強会] ハッシュ
[アルゴリズムイントロダクション勉強会] ハッシュ
Rei Takami
数学を数学で数学した人々
数学を数学で数学した人々
Akira Yamaguchi
Divisor
Divisor
Ken Ogura
Recommended
Hash functions
Hash functions
tabun_muri
HashMapとは?
HashMapとは?
Trash Briefing ,Ltd
Hash mapとは
Hash mapとは
Kuroiwa Takumi
アルゴリズムとデータ構造10
アルゴリズムとデータ構造10
Kenta Hattori
アルゴリズムとデータ構造9
アルゴリズムとデータ構造9
Kenta Hattori
[アルゴリズムイントロダクション勉強会] ハッシュ
[アルゴリズムイントロダクション勉強会] ハッシュ
Rei Takami
数学を数学で数学した人々
数学を数学で数学した人々
Akira Yamaguchi
Divisor
Divisor
Ken Ogura
アルゴリズムとデータ構造6
アルゴリズムとデータ構造6
Kenta Hattori
Rustで始める競技プログラミング
Rustで始める競技プログラミング
Naoya Okanami
関数の最小値を求めることから機械学習へ
関数の最小値を求めることから機械学習へ
Hiro H.
アルゴリズム+データ構造勉強会(9)
アルゴリズム+データ構造勉強会(9)
noldor
programming camp 2008, introduction of programming, algorithm
programming camp 2008, introduction of programming, algorithm
Hiro Yoshioka
圏とHaskellの型
圏とHaskellの型
KinebuchiTomo
Haskell勉強会 in ie
Haskell勉強会 in ie
maeken2010
圏論のモナドとHaskellのモナド
圏論のモナドとHaskellのモナド
Yoshihiro Mizoguchi
Python勉強会3-コレクションとファイル
Python勉強会3-コレクションとファイル
理 小林
圏論とHaskellは仲良し
圏論とHaskellは仲良し
ohmori
自動定理証明の紹介
自動定理証明の紹介
Masahiro Sakai
代数的実数とCADの実装紹介
代数的実数とCADの実装紹介
Masahiro Sakai
mathemaical_notation
mathemaical_notation
Kenta Oono
Presentation missouri
Presentation missouri
feoropeza
õPpeinfosüSteemi üHildamine E õPpe Keskkondadega üHe üLikooli õI Si NäItel
õPpeinfosüSteemi üHildamine E õPpe Keskkondadega üHe üLikooli õI Si NäItel
Maret Mõis
Grayling foreign-investment-think-piece june-2011
Grayling foreign-investment-think-piece june-2011
Pavel Melnikov
Tenth Draft Dr. Cotter
Tenth Draft Dr. Cotter
feoropeza
El costo de la anticipación
El costo de la anticipación
UNAH CUROC
Direccion escolar efectiva_elsalvador
Direccion escolar efectiva_elsalvador
I GARITA
Meraviglioso
Meraviglioso
guest2a927f
Virtual team tools
Virtual team tools
Ladies Who Launch Atlanta
Firewall corewp
Firewall corewp
Jorge Huamán
More Related Content
What's hot
アルゴリズムとデータ構造6
アルゴリズムとデータ構造6
Kenta Hattori
Rustで始める競技プログラミング
Rustで始める競技プログラミング
Naoya Okanami
関数の最小値を求めることから機械学習へ
関数の最小値を求めることから機械学習へ
Hiro H.
アルゴリズム+データ構造勉強会(9)
アルゴリズム+データ構造勉強会(9)
noldor
programming camp 2008, introduction of programming, algorithm
programming camp 2008, introduction of programming, algorithm
Hiro Yoshioka
圏とHaskellの型
圏とHaskellの型
KinebuchiTomo
Haskell勉強会 in ie
Haskell勉強会 in ie
maeken2010
圏論のモナドとHaskellのモナド
圏論のモナドとHaskellのモナド
Yoshihiro Mizoguchi
Python勉強会3-コレクションとファイル
Python勉強会3-コレクションとファイル
理 小林
圏論とHaskellは仲良し
圏論とHaskellは仲良し
ohmori
自動定理証明の紹介
自動定理証明の紹介
Masahiro Sakai
代数的実数とCADの実装紹介
代数的実数とCADの実装紹介
Masahiro Sakai
mathemaical_notation
mathemaical_notation
Kenta Oono
What's hot
(13)
アルゴリズムとデータ構造6
アルゴリズムとデータ構造6
Rustで始める競技プログラミング
Rustで始める競技プログラミング
関数の最小値を求めることから機械学習へ
関数の最小値を求めることから機械学習へ
アルゴリズム+データ構造勉強会(9)
アルゴリズム+データ構造勉強会(9)
programming camp 2008, introduction of programming, algorithm
programming camp 2008, introduction of programming, algorithm
圏とHaskellの型
圏とHaskellの型
Haskell勉強会 in ie
Haskell勉強会 in ie
圏論のモナドとHaskellのモナド
圏論のモナドとHaskellのモナド
Python勉強会3-コレクションとファイル
Python勉強会3-コレクションとファイル
圏論とHaskellは仲良し
圏論とHaskellは仲良し
自動定理証明の紹介
自動定理証明の紹介
代数的実数とCADの実装紹介
代数的実数とCADの実装紹介
mathemaical_notation
mathemaical_notation
Viewers also liked
Presentation missouri
Presentation missouri
feoropeza
õPpeinfosüSteemi üHildamine E õPpe Keskkondadega üHe üLikooli õI Si NäItel
õPpeinfosüSteemi üHildamine E õPpe Keskkondadega üHe üLikooli õI Si NäItel
Maret Mõis
Grayling foreign-investment-think-piece june-2011
Grayling foreign-investment-think-piece june-2011
Pavel Melnikov
Tenth Draft Dr. Cotter
Tenth Draft Dr. Cotter
feoropeza
El costo de la anticipación
El costo de la anticipación
UNAH CUROC
Direccion escolar efectiva_elsalvador
Direccion escolar efectiva_elsalvador
I GARITA
Meraviglioso
Meraviglioso
guest2a927f
Virtual team tools
Virtual team tools
Ladies Who Launch Atlanta
Firewall corewp
Firewall corewp
Jorge Huamán
Foilsを使ってみた。
Foilsを使ってみた。
Keisuke OTAKI
Perkembangan asuransi syariah di indonesia 2012
Perkembangan asuransi syariah di indonesia 2012
Wiku Suryomurti
Pingüí
Pingüí
mertxita
Social Media Basics
Social Media Basics
LP Life Coach
Coworking Europe 2012 París
Coworking Europe 2012 París
Working Space
What is art?
What is art?
mertxita
Think piece pharma 2020 june 2010
Think piece pharma 2020 june 2010
Pavel Melnikov
Presentation
Presentation
s1170006
Presentation
Presentation
s1170006
Em
Em
Keisuke OTAKI
Natalia Zubarevich - Russian regions - September 2014
Natalia Zubarevich - Russian regions - September 2014
Pavel Melnikov
Viewers also liked
(20)
Presentation missouri
Presentation missouri
õPpeinfosüSteemi üHildamine E õPpe Keskkondadega üHe üLikooli õI Si NäItel
õPpeinfosüSteemi üHildamine E õPpe Keskkondadega üHe üLikooli õI Si NäItel
Grayling foreign-investment-think-piece june-2011
Grayling foreign-investment-think-piece june-2011
Tenth Draft Dr. Cotter
Tenth Draft Dr. Cotter
El costo de la anticipación
El costo de la anticipación
Direccion escolar efectiva_elsalvador
Direccion escolar efectiva_elsalvador
Meraviglioso
Meraviglioso
Virtual team tools
Virtual team tools
Firewall corewp
Firewall corewp
Foilsを使ってみた。
Foilsを使ってみた。
Perkembangan asuransi syariah di indonesia 2012
Perkembangan asuransi syariah di indonesia 2012
Pingüí
Pingüí
Social Media Basics
Social Media Basics
Coworking Europe 2012 París
Coworking Europe 2012 París
What is art?
What is art?
Think piece pharma 2020 june 2010
Think piece pharma 2020 june 2010
Presentation
Presentation
Presentation
Presentation
Em
Em
Natalia Zubarevich - Russian regions - September 2014
Natalia Zubarevich - Russian regions - September 2014
More from Keisuke OTAKI
KDD読み会(図なし版)
KDD読み会(図なし版)
Keisuke OTAKI
Reading Seminar (140515) Spectral Learning of L-PCFGs
Reading Seminar (140515) Spectral Learning of L-PCFGs
Keisuke OTAKI
一階述語論理のメモ
一階述語論理のメモ
Keisuke OTAKI
Grammatical inference メモ 1
Grammatical inference メモ 1
Keisuke OTAKI
ベイジアンネットワーク入門
ベイジアンネットワーク入門
Keisuke OTAKI
Tensor Decomposition and its Applications
Tensor Decomposition and its Applications
Keisuke OTAKI
Ada boost
Ada boost
Keisuke OTAKI
PRML§12-連続潜在変数
PRML§12-連続潜在変数
Keisuke OTAKI
Prml sec6
Prml sec6
Keisuke OTAKI
ウェーブレット勉強会
ウェーブレット勉強会
Keisuke OTAKI
Prml sec3
Prml sec3
Keisuke OTAKI
Sec16 greedy algorithm no2
Sec16 greedy algorithm no2
Keisuke OTAKI
Sec16 greedy algorithm no1
Sec16 greedy algorithm no1
Keisuke OTAKI
Sec15 dynamic programming
Sec15 dynamic programming
Keisuke OTAKI
More from Keisuke OTAKI
(14)
KDD読み会(図なし版)
KDD読み会(図なし版)
Reading Seminar (140515) Spectral Learning of L-PCFGs
Reading Seminar (140515) Spectral Learning of L-PCFGs
一階述語論理のメモ
一階述語論理のメモ
Grammatical inference メモ 1
Grammatical inference メモ 1
ベイジアンネットワーク入門
ベイジアンネットワーク入門
Tensor Decomposition and its Applications
Tensor Decomposition and its Applications
Ada boost
Ada boost
PRML§12-連続潜在変数
PRML§12-連続潜在変数
Prml sec6
Prml sec6
ウェーブレット勉強会
ウェーブレット勉強会
Prml sec3
Prml sec3
Sec16 greedy algorithm no2
Sec16 greedy algorithm no2
Sec16 greedy algorithm no1
Sec16 greedy algorithm no1
Sec15 dynamic programming
Sec15 dynamic programming
Recently uploaded
ロボットマニピュレーションの作業・動作計画 / rosjp_planning_for_robotic_manipulation_20240521
ロボットマニピュレーションの作業・動作計画 / rosjp_planning_for_robotic_manipulation_20240521
Satoshi Makita
研究紹介スライド: オフライン強化学習に基づくロボティックスワームの制御器の設計
研究紹介スライド: オフライン強化学習に基づくロボティックスワームの制御器の設計
atsushi061452
Intranet Development v1.0 (TSG LIVE! 12 LT )
Intranet Development v1.0 (TSG LIVE! 12 LT )
iwashiira2ctf
クラウド時代におけるSREとUPWARDの取組ーUPWARD株式会社 CTO門畑
クラウド時代におけるSREとUPWARDの取組ーUPWARD株式会社 CTO門畑
Akihiro Kadohata
部内勉強会(IT用語ざっくり学習) 実施日:2024年5月17日(金) 対象者:営業部社員
部内勉強会(IT用語ざっくり学習) 実施日:2024年5月17日(金) 対象者:営業部社員
Sadaomi Nishi
論文紹介:ViTPose: Simple Vision Transformer Baselines for Human Pose Estimation
論文紹介:ViTPose: Simple Vision Transformer Baselines for Human Pose Estimation
Toru Tamaki
情報を表現するときのポイント
情報を表現するときのポイント
onozaty
2024年5月25日Serverless Meetup大阪 アプリケーションをどこで動かすべきなのか.pptx
2024年5月25日Serverless Meetup大阪 アプリケーションをどこで動かすべきなのか.pptx
ssuserbefd24
論文紹介:Deep Occlusion-Aware Instance Segmentation With Overlapping BiLayers
論文紹介:Deep Occlusion-Aware Instance Segmentation With Overlapping BiLayers
Toru Tamaki
20240523_IoTLT_vol111_kitazaki_v1___.pdf
20240523_IoTLT_vol111_kitazaki_v1___.pdf
Ayachika Kitazaki
5/22 第23回 Customer系エンジニア座談会のスライド 公開用 西口瑛一
5/22 第23回 Customer系エンジニア座談会のスライド 公開用 西口瑛一
瑛一 西口
Amazon Cognitoで実装するパスキー (Security-JAWS【第33回】 勉強会)
Amazon Cognitoで実装するパスキー (Security-JAWS【第33回】 勉強会)
keikoitakurag
Recently uploaded
(12)
ロボットマニピュレーションの作業・動作計画 / rosjp_planning_for_robotic_manipulation_20240521
ロボットマニピュレーションの作業・動作計画 / rosjp_planning_for_robotic_manipulation_20240521
研究紹介スライド: オフライン強化学習に基づくロボティックスワームの制御器の設計
研究紹介スライド: オフライン強化学習に基づくロボティックスワームの制御器の設計
Intranet Development v1.0 (TSG LIVE! 12 LT )
Intranet Development v1.0 (TSG LIVE! 12 LT )
クラウド時代におけるSREとUPWARDの取組ーUPWARD株式会社 CTO門畑
クラウド時代におけるSREとUPWARDの取組ーUPWARD株式会社 CTO門畑
部内勉強会(IT用語ざっくり学習) 実施日:2024年5月17日(金) 対象者:営業部社員
部内勉強会(IT用語ざっくり学習) 実施日:2024年5月17日(金) 対象者:営業部社員
論文紹介:ViTPose: Simple Vision Transformer Baselines for Human Pose Estimation
論文紹介:ViTPose: Simple Vision Transformer Baselines for Human Pose Estimation
情報を表現するときのポイント
情報を表現するときのポイント
2024年5月25日Serverless Meetup大阪 アプリケーションをどこで動かすべきなのか.pptx
2024年5月25日Serverless Meetup大阪 アプリケーションをどこで動かすべきなのか.pptx
論文紹介:Deep Occlusion-Aware Instance Segmentation With Overlapping BiLayers
論文紹介:Deep Occlusion-Aware Instance Segmentation With Overlapping BiLayers
20240523_IoTLT_vol111_kitazaki_v1___.pdf
20240523_IoTLT_vol111_kitazaki_v1___.pdf
5/22 第23回 Customer系エンジニア座談会のスライド 公開用 西口瑛一
5/22 第23回 Customer系エンジニア座談会のスライド 公開用 西口瑛一
Amazon Cognitoで実装するパスキー (Security-JAWS【第33回】 勉強会)
Amazon Cognitoで実装するパスキー (Security-JAWS【第33回】 勉強会)
Hash Table
1.
Introduction To Algorithms.§11.
Hash Tables. 2010 / 06
2.
3.
先頭にあれば… O(1)
4.
末尾にあれば… O(N)
5.
6.
Key と Value
の 組合せ
7.
(Key, Value) で
表に格納する
8.
9.
出来れば高速で計算して…
10.
11.
12.
同じ日の人って…そんなにいないはず
13.
M = 7
: 素数
14.
経験的に素数を使う方がいいらしい
15.
16.
17.
チェイン法/クローズドハッシュ法
18.
19.
20.
21.
一つのチェイン長は平均してn / m
= α : 占有率
22.
仮定:ハッシュ関数はすぐ計算出来る O(1)
23.
そのまま挿入出来る or リストをたどる
24.
25.
大前提2. 上手くばらける
26.
Mod: 割り算だけなので高速
27.
28.
kA mod 1
… kA – floor(kA)
29.
30.
31.
基本的に O(1)
32.
リストで管理
33.
34.
35.
§11.4 Open Addressing
(Figure) (78/11/4, C) (01/5/12, E) (87/2/1, B) (85/10/5, A) ずらす (68/8/4, C)
36.
37.
+1していく:Linear Probing, 線形探査法
38.
2次関数:Quadratic Probing, 二次関数探査法
39.
40.
Hash(data, i) =
( Hash(k) + I ) mod m
41.
H(k,i) = (H’(k)
+ c1 i + c2 i*I) mod m
42.
43.
i回目の生成
44.
45.
ずらすので、高々1要素がスロットにある
46.
基本的にα = 1
になってしまうと格納出来ない
47.
48.
α = 0.5
49.
50.
0~2なら2回以上
51.
3~5なら1回
52.
平均的に 1 /
( 1 – α)
53.
54.
要約:ハッシュ関数が単射
55.
56.
Java:HashMap
57.
58.
途中の詳しいところ、思い切り飛ばした!
59.
簡単なのなら直ぐ作れます
Download now