Using sum notation to represent iterative algorithms - Intuition

  Рет қаралды 1,804

Matthew Hennegan

Matthew Hennegan

Күн бұрын

First video in a series on how to calculate the efficiency of iterative algorithms.

Пікірлер: 4
@informativecontent4778
@informativecontent4778 5 жыл бұрын
thanks sir i will pass my exam IA thanks to you it was really hard to find any tutorials on efficiency of algos that i understood as well as these
@matthewhennegan839
@matthewhennegan839 5 жыл бұрын
Thanks for taking the time to comment! I'm glad you found them easy to follow. Best of luck in your exam!
@tigercaptain7121
@tigercaptain7121 7 жыл бұрын
at 2:10, the line x = x * x has a cost efficiency of 2, not 1, since you are doing two things: First, multiplying x times x, second you are assigning x to the value produced in the first step. Thanks for the video
@matthewhennegan839
@matthewhennegan839 7 жыл бұрын
Ah it may be. Though in that case you'd say the same for x++ being short for x = x + 1 (an addition, and an assignment). I don't know enough about the efficiency differences between arithmetic operations like addition vs multiplication, or assignment vs multiplication to know for sure when you ignore one as a basic operation in favor of simply counting the most complex operations within the loop. Though either way it won't change the efficiency class it belongs to, so it may just come down to making sure you measure everything the same way when you compare them. Glad you enjoyed the video and thanks for the feedback!
Solving nested iterative algorithm
7:46
Matthew Hennegan
Рет қаралды 865
Time Complexity Algorithm Analysis
6:29
randerson112358
Рет қаралды 53 М.
An Unknown Ending💪
00:49
ISSEI / いっせい
Рет қаралды 57 МЛН
Incredible: Teacher builds airplane to teach kids behavior! #shorts
00:32
Fabiosa Stories
Рет қаралды 11 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 67 МЛН
Students these days are not able to solve this one
17:02
Flammable Maths
Рет қаралды 12 М.
Solving iterative algorithm with 3 nested loops
11:17
Matthew Hennegan
Рет қаралды 12 М.
Variant Intuition
5:17
Matthew Hennegan
Рет қаралды 299
Solving Nested Algorithm 2
7:55
Matthew Hennegan
Рет қаралды 584
Solving Wordle using information theory
30:38
3Blue1Brown
Рет қаралды 10 МЛН
Нашумевшая задача математического клуба
6:01
Математика и фокусы
Рет қаралды 6 М.
Analysis of Non recursive Algorithms
24:36
jadavparesh808
Рет қаралды 39 М.
Uneven steps for iterative algorithms
7:09
Matthew Hennegan
Рет қаралды 516
Making an Invariant Hypothesis
5:37
Matthew Hennegan
Рет қаралды 2,3 М.
An Unknown Ending💪
00:49
ISSEI / いっせい
Рет қаралды 57 МЛН