Data analyst Q&A 25. What is a hash table collision? How can it be prevented?
Manage episode 313041427 series 3257233
内容由Sominath Avhad提供。所有播客内容(包括剧集、图形和播客描述)均由 Sominath Avhad 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal。
25. What is a hash table collision? How can it be prevented? This is one of the important data analyst interview questions. The sample answer is… When two separate keys hash to a common value, a hash table collision occurs. This means that two different data cannot be stored in the same slot. Hash collisions can be avoided by two methods : · Separate chaining – In this method, a data structure is used to store multiple items hashing to a common slot. · Open addressing – This method seeks out empty slots and stores the item in the first empty slot available.
…
continue reading
90集单集