Save this video free

CS3130FS26Module1B3VidProc

DrHeUMSLTeaching · 1:02:05 · Watch on YouTube

Part of University of Missouri-St. Louis CS 3130. See all 21 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

The lecture compares brute-force polynomial evaluation with Horner’s rule, showing how reducing multiplication counts from roughly n²/2 to n changes practical runtime: for n = 1,000,000, the estimated ratio is 500,000 to 1. It then develops repeated squaring for xⁿ, using powers of two and binary decomposition to extend the method to arbitrary exponents, and compares it with repeated cubing and mixed strategies. The discussion also connects these algorithms to problem-solving heuristics, recursive implementation, resource reuse, and the tradeoff between an optimal solution and the effort needed to find it.

Key takeaways

Chapters

0:00 Brute-Force Polynomial Evaluation Versus Horner’s Rule
4:00 Polynomial Evaluation at n = 1,000 and n = 1,000,000
8:00 Runtime Consequences and the Polynomial-Evaluation Project
11:00 Why Monomials Need a Specialized Exponentiation Algorithm
15:00 The Golden Rule: Simplify the Problem Before Generalizing
19:00 Repeated Squaring for Exponents That Are Powers of Two
22:00 Building General Exponents from Powers of Two
27:00 Computing x²¹⁷ with Reusable Intermediate Powers
34:00 Binary Representation Explains the Power-of-Two Decomposition
43:00 Recursive Repeated Squaring and the Repeated-Cubing Alternative
53:00 Mixed Exponentiation Strategies and Finding Fewest Multiplications
59:00 Optimality Tradeoffs and the Next Special Structure

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 well-known efficient algorithm to evaluate polomials. Horner's rule. Yeah. Now we want to compare these two algorithms. Horner's rule and brute force method. To compare from the formula we can see clearly the horner's rule is much faster. Yeah. Let's look at the for two formulas. Yeah. uh the difference these two formula you see the difference by the brute force method we need this many multiplications 12 * n * n + one this formula you can see there is n²

0:53 the main term here is n² other terms not that important The most important term is n square term but this side through side we only need to do n multiplications. So you here you can see that is n² versus n that difference from the formula we can see the big difference but that's not enough if we only look at from the formula side not enough we need to look at from the real world uh experience

1:42 what's the difference. Yeah. So here we need to we want to look at this question from a different point of view. Right? Impact of multiplication reduction. We want to use a concrete example to see what is the real difference. Yeah. All right. For the concrete example, the first one, let us assume n equals 1,000. Yeah, it is a big polomial degree 1,000. Yeah, so it's a very high degree polomial 1,00 that let us plug in this n number into

2:34 these two formulas to see what is the difference. and side 1,00 this side. Yeah, it's a plug in but we like to use a approximation easy approximation way to see that number may not be exact number approximate number. Okay. Yeah. Approxim plus one. We still use 1,00. Okay. We use approximate way. Yeah. To see Yeah.

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, DrHeUMSLTeaching.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.