সব বই

পেশাদার

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ক্যারিয়ার অনলাইন
অ্যাপ পরিচিতি Coach সাইন ইন পড়া শুরু করো

বইগুলো এখনো বাংলা ভাষায় পাওয়া যায় না — ইংরেজি সংস্করণ দেখানো হচ্ছে।

Computer Science · পরিভাষা

Selection problem, quickselect, median of medians কী?

অন্য নাম: selection problem · quickselect · median of medians

Definition 21.5 University Computer Science — Year 1 · অধ্যায় 21 — Divide and Conquer

The selection problem asks for the key of rank kk of nn keys, the one that would be at position kk if they were sorted; the median is the key of rank ⌊(n−1)/2⌋\lfloor (n - 1)/2 \rfloor. Quickselect partitions the keys around a pivot, as quicksort does, and goes on in the one part that holds rank kk. The median of medians chooses as pivot the median of the medians of groups of five keys, found by a recursive call.

Thirty-five keys in seven columns of five, columns ordered by their median; the circled key, the median of the medians, is the pivot. The shaded block below and left holds keys no larger than the pivot, the one above and right keys no smaller: each about 3/10 of all keys.
Thirty-five keys in seven columns of five, columns ordered by their median; the circled key, the median of the medians, is the pivot. The shaded block below and left holds keys no larger than the pivot, the one above and right keys no smaller: each about 3/103/10 of all keys.
প্রসঙ্গসহ পড়ো →