সব বই

পেশাদার

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 · পরিভাষা

Recurrence relation, recursion tree কী?

অন্য নাম: recurrence relation · recursion tree

Definition 13.11 University Computer Science — Year 1 · অধ্যায় 13 — Asymptotic Analysis and Recurrences

A recurrence relation defines a cost function by its values on small sizes and an equation expressing T(n)T(n) in terms of values on smaller sizes. The recursion tree of such an equation has a node for each call, labelled with the cost spent in that call outside its recursive calls; its children are the calls it makes. T(n)T(n) is the sum of all the labels, which one often computes level by level.

The recursion tree of T(n) = 2T(n/2) + n: every level costs n, and there are _2 n levels above the leaves, hence T(n) = n _2 n + nT(1) for n a power of 2.
The recursion tree of T(n)=2T(n/2)+nT(n) = 2T(n/2) + n: every level costs nn, and there are log⁡2n\log_2 n levels above the leaves, hence T(n)=nlog⁡2n+nT(1)T(n) = n\log_2 n + nT(1) for nn a power of 2.
The three regimes of the master theorem, drawn as the cost of each level of the recursion tree (one bar per level, from the root down). The level costs form a geometric sequence of ratio a/bk: decreasing, the root’s term dominates; constant, the _b n levels add up; increasing, the leaves dominate.
The three regimes of the master theorem, drawn as the cost of each level of the recursion tree (one bar per level, from the root down). The level costs form a geometric sequence of ratio a/bka/b^k: decreasing, the root’s term dominates; constant, the log⁡bn\log_b n levels add up; increasing, the leaves dominate.
প্রসঙ্গসহ পড়ো →