使用集合整形理论以RAM访问换取CPU计算
Using Set Shaping Theory to Trade RAM Accesses for CPU Computation
AI总结:
本文在数据库索引场景中重新解释集合整形理论(SST),将其作为预处理层应用于现有哈希索引方法,实验表明SST能减少RAM访问次数、降低探测次数和尾延迟,并引入可逆数据表示的新思路。
摘要:
本文在数据库索引场景中,在修正解释下研究集合整形理论(SST):SST不被视为一种竞争的哈希方法,而是作为一种结构预处理层,可以在现有索引算法之前应用。因此,实验问题是:使用SST的方法是否比不使用SST的方法有所改进。研究比较了线性探测、双重哈希、二次探测和Robin Hood哈希及其对应的SST增强变体,整形阶数K=2,4,8。除了平均时间,基准测试还报告了平均成功探测次数、第95和99百分位探测次数、每个存储记录的冲突次数以及最大簇长度。实验覆盖负载因子0.75至0.95,数据库大小M=5000至500000,查询倍数高达每个存储记录200次查找,以及均匀和热点查询分布。结果突出了两个基本优势。首先,SST减少了检索期间所需的RAM访问次数。通过在插入时防止簇和长探测链的形成,查找阶段需要更少的内存跳转、更低的探测次数和更低的尾延迟。其次,该方法引入了一种关于数据存储的新思维方式:数据不被视为必须被动放入表中的固定对象,而是可以在写入前进行结构适配的可逆表示。一个小的元数据标签记录选择了哪种变换,使得原始键保持可恢复,查找过程保持确定性。本文与集合整形理论模拟器项目相关,该项目可在https://sst-simulator.github.io/Set-Shaping-Theory-Simulator/在线获取,可以模拟本文中呈现的部分结果。
英文摘要:
This paper studies Set Shaping Theory (SST) in a database-index setting under a revised interpretation: SST is not treated as a competing hashing method, but as a structural pre processing layer that can be applied before an existing indexing algorithm. The experimental question is therefore whether a method improves when it is used with SST rather than with out it. The study compares linear probing, double hashing, quadratic probing, and Robin Hood hashing against their corresponding SST-augmented variants for shaping orders K = 2,4,8. Beyond mean time, the benchmark reports mean successful probes, 95th and 99th percentile probes, collisions per stored record, and maxi mum cluster length. Experiments cover load factors from 0.75 to 0.95, database sizes from M =5000 to M =500000, query multipliers up to 200 lookups per stored record, and both uniform and hotspot query distributions. The results highlight two fundamental advantages. First, SST reduces the number of RAM accesses required during retrieval. By prevent ing clusters and long probe chains from forming at insertion time, the lookup phase requires fewer memory jumps, lower probe counts, and reduced tail latency. Second, the method introduces a new way of thinking about data storage: the data are not treated as fixed objects that must be placed passively into a table, but as reversible representations that can be struc turally adapted before being written. A small metadata tag records which transformation was selected, allowing the original key to remain recoverable and the lookup process to remain deterministic.This article is connected to the Set Shaping Theory simulator project, available online at https://sst-simulator.github.io/Set-Shaping-Theory-Simulator/ where it is possible to simulate part of the results presented in the article.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。