جميع الكتب

مهني

1 Markets I: The Ecosystem and Exchange-Traded Marketsالأسواق عبر الإنترنت 2 Markets II: Rates, FX and Creditالأسواق عبر الإنترنت 3 Markets III: Commodities, Energy and Cryptoالأسواق عبر الإنترنت 4 Quantitative Methodsالأساليب عبر الإنترنت 5 Derivatives and Volatilityالمشتقات عبر الإنترنت 6 Rates, Credit, XVA and Riskالفائدة والائتمان والمخاطر عبر الإنترنت 7 Research Craft: Predictors, Backtests, Measurement, Portfoliosالبحث عبر الإنترنت 8 Strategies I: Equities and Futuresالاستراتيجيات عبر الإنترنت 9 Strategies II: Volatility, Relative Value, Macro and the Bank Desksالاستراتيجيات عبر الإنترنت 10 Microstructure and Executionالتنفيذ عبر الإنترنت 11 Market Making and High-Frequency Tradingصناعة السوق عبر الإنترنت 12 Machine Learning for Marketsتعلم الآلة عبر الإنترنت 13 Low-Latency Softwareالتكنولوجيا عبر الإنترنت 14 Networks, Hardware and Trading Infrastructureالتكنولوجيا عبر الإنترنت 15 Research, Data and Risk Platformsالتكنولوجيا عبر الإنترنت 16 The Desk and the Firmالشركة عبر الإنترنت 17 The Industry: Firms, Roles and Careersالمسارات المهنية عبر الإنترنت 18 Interviews I: Maths, Probability and Speedالمسارات المهنية عبر الإنترنت 19 Interviews II: Markets, Trading Games and the Final Roundالمسارات المهنية عبر الإنترنت 20 Interviews III: Codeالمسارات المهنية عبر الإنترنت
التطبيقات حول المدرب تسجيل الدخول ابدأ القراءة

Computer Science · المسرد

ما معنى Static hashing, extendible hashing, linear hashing؟

يُعرف أيضًا باسم: static hashing · extendible hashing · linear hashing

Definition 21.5 University Computer Science — Year 3 · الفصل 21 — Database Storage and Indexes

Static hashing sends key kk to bucket h(k) mod Nh(k) \bmod N for a fixed number NN of bucket pages; a full bucket chains overflow pages. Extendible hashing keeps a directory of 2d2^d pointers indexed by the last dd bits of h(k)h(k), the global depth; each bucket has a local depth d′≤dd' \le d, the number of bits its keys share, and is named by 2d−d′2^{d-d'} directory entries. A full bucket splits on bit d′d'; if d′=dd' = d, the directory doubles first. Linear hashing has no directory: buckets split one at a time, in a fixed round-robin order, whenever the load passes a threshold, and a bucket already split in the current round is addressed with one more bit.

Extendible hashing with buckets of two keys and h(k) = k. Inserting 3 (binary 11) into the full bucket of the keys ending in 1 needs a second bit: the directory doubles, the bucket splits into 01 and 11, and bucket 0, still of local depth 1, is now named by two entries.
Extendible hashing with buckets of two keys and h(k)=kh(k) = k. Inserting 3 (binary 11) into the full bucket of the keys ending in 1 needs a second bit: the directory doubles, the bucket splits into 01 and 11, and bucket 0, still of local depth 1, is now named by two entries.
اقرأ في الفصل →