You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Chap04/4.2.md
+64-7Lines changed: 64 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,17 +123,74 @@ By master theorem, we can find the largest $k$ to satisfy $\log_3 k < \lg 7$ is
123
123
124
124
> V. Pan has discovered a way of multiplying $68 \times 68$ matrices using $132464$ multiplications, a way of multiplying $70 \times 70$ matrices using $143640$ multiplications, and a way of multiplying $72 \times 72$ matrices using $155424$ multiplications. Which method yields the best asymptotic running time when used in a divide-and-conquer matrix-multiplication algorithm? How does it compare to Strassen's algorithm?
125
125
126
-
Using what we know from the last exercise, we need to pick the smallest of the following
126
+
**Analyzing Pan's Methods**
127
+
128
+
Pan has introduced three methods for divide-and-conquer matrix multiplication, each with different parameters. We will analyze the recurrence relations, compute the exponents using the Master Theorem, and compare the resulting asymptotic running times to Strassen’s algorithm.
129
+
130
+
**Method 1:**
131
+
132
+
- **Recurrence Relation:**
127
133
128
134
$$
129
-
\begin{aligned}
130
-
\log_{68} 132464 & \approx 2.795128 \\\\
131
-
\log_{70} 143640 & \approx 2.795122 \\\\
132
-
\log_{72} 155424 & \approx 2.795147.
133
-
\end{aligned}
135
+
T(n) = 132{,}464 \cdot T\left(\frac{n}{68}\right)
136
+
$$
137
+
138
+
- **Parameters:** $a = 132{,}464$, $b = 68$
139
+
- **Applying Master Theorem:**
140
+
141
+
$$
142
+
\log_b a = \frac{\log 132{,}464}{\log 68} \approx 2.7951284873613815
0 commit comments