Bölüm 1.2 · SimülatörRecurrence & Master Theorem Visualizer? ← Bölüm 1.2T(n) = a·T(n/b) + n^ka — subproblemsb — shrink factork in f(n)=n^kExample nAnalyze RecurrenceRecursion Treenodes per level · subproblem size · work on the level KapatRecurrence & Master TheoremExplore recurrences of the form T(n) = aT(n/b) + f(n), compare recursion-tree levels, and classify the recurrence using the Master Theorem.How to useSet a (number of subproblems, a ≥ 1), b (shrink factor, b > 1), k (the non-recursive work is f(n) = nk) and an example input size n, then press Analyze Recurrence.The left panel shows the critical exponent logba, the Master Theorem case and the predicted bound.The recursion tree lists one row per level i: ai subproblems (small squares, at most 30 drawn; “…” means more), each of size n/bi, and the total work on that level ai·(n/bi)k. The bar compares level work with the heaviest level. At most 10 levels are drawn.Master TheoremCompare f(n) = nk with nlogba:Case 1 (k < logba): recursive work dominates; level work grows towards the leaves; T(n) = Θ(nlogba).Case 2 (k = logba): every level contributes the same work; T(n) = Θ(nk log n).Case 3 (k > logba): the root dominates; level work shrinks towards the leaves; T(n) = Θ(nk). Case 3 needs the regularity condition a·f(n/b) ≤ c·f(n) for some c < 1; for f(n) = nk it always holds with c = a/bk.ExamplesRecurrencea, b, kBoundBinary search1, 2, 0Θ(log n)Merge sort2, 2, 1Θ(n log n)Karatsuba3, 2, 1Θ(n1.585)Strassen7, 2, 2Θ(n2.807)