Hash-table:Basic Idea Hashing:the idea Q:When should we use hash table? What situations is the hash table suitable for? Feasible size Very large,but only a small E0] part is used in an applica- E[川 tion at a certain time. Key Space E[m-1刂 ,口+4,。左生,岁
Hash-table: Basic Idea Hashing: the idea Q : When should we use hash table? What situations is the hash table suitable for? Key Space x Very large, but only a small part is used in an application at a certain time. · · · · · · E [0] E [1] E [m − 1] Feasible size E [k] Hash Function Index distribution Collision handling MA Jun (Institute of Computer Software) Problem Solving May 10, 2022 3 / 34
Hash-table:Basic Idea Hashing:the idea Q:When should we use hash table? What situations is the hash table suitable for? Feasible size Very large,but only a small E0] part is used in an applica- E川 tion at a certain time. E[周 Hash Function Key Space E[m-1]
Hash-table: Basic Idea Hashing: the idea Q : When should we use hash table? What situations is the hash table suitable for? Key Space x Very large, but only a small part is used in an application at a certain time. · · · · · · E [0] E [1] E [m − 1] Feasible size E [k] Hash Function Index distribution Collision handling MA Jun (Institute of Computer Software) Problem Solving May 10, 2022 3 / 34
Hash-table:Basic Idea Hashing:the idea Q:When should we use hash table? What situations is the hash table suitable for? Feasible size Very large,but only a small E[O] part is used in an applica- E川 o Index distribution tion at a certain time. ● Collision handling E[周 Hash Function Key Space E[m-1 ,口+4y,。法,生,生QG MA Jun (Institute of Computer Software) Problem Solving My10.2022 3/34
Hash-table: Basic Idea Hashing: the idea Q : When should we use hash table? What situations is the hash table suitable for? Key Space x Very large, but only a small part is used in an application at a certain time. · · · · · · E [0] E [1] E [m − 1] Feasible size E [k] Hash Function Index distribution Collision handling MA Jun (Institute of Computer Software) Problem Solving May 10, 2022 3 / 34
Hash-table:Basic Idea Hashing:the idea Q:What is a Collision?When does it take place? 口卡4心,老生Q0 MA Jun (Institute of Computer Software) Problem Solving May10.2022 4/34
Hash-table: Basic Idea Hashing: the idea Q : What is a Collision? When does it take place? Hash Function Key Space · · · · · · E [0] E [1] E [m − 1] x y E [k] MA Jun (Institute of Computer Software) Problem Solving May 10, 2022 4 / 34
Hash-table:Basic Idea Hashing:the idea Q:What is a Collision?When does it take place? E[O] E[叫 Hash Function Key Space E[m-1 酸 ,口+4心,。左,生,生 0Q0
Hash-table: Basic Idea Hashing: the idea Q : What is a Collision? When does it take place? Hash Function Key Space · · · · · · E [0] E [1] E [m − 1] x y E [k] MA Jun (Institute of Computer Software) Problem Solving May 10, 2022 4 / 34