How can we multiply large integers quickly? (Karatsuba algorithm) - Inside code

How can we multiply large integers quickly? (Karatsuba algorithm) - Inside code

Inside code

3 года назад

88,229 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Konstantin Rebrov
Konstantin Rebrov - 21.11.2023 20:17

When I was in university I was assigned to implement this algorithm, and I struggled to understand it.

Ответить
Yusuf K
Yusuf K - 17.11.2023 09:33

goated video

Ответить
Yaswanth Gadamsetti
Yaswanth Gadamsetti - 15.11.2023 22:31

this is a very well done video, the animation and the color palate are really smooth and the explanation is clear as day.

Ответить
PirateBoy Gaming
PirateBoy Gaming - 30.10.2023 18:56

Best explanation of karatsuba algorithm.

Ответить
Harsh Mangalam Verma
Harsh Mangalam Verma - 23.10.2023 20:40

thanks for the video explaination.
also, note that 1.58 is read as one point five eight, not one point fifty eight.

Ответить
Suyzil Jackson
Suyzil Jackson - 20.10.2023 06:16

is there another way to get 3 multiplications?

Ответить
Noone
Noone - 14.10.2023 15:51

beautiful ty

Ответить
Shashwat Shourya
Shashwat Shourya - 22.09.2023 00:18

informative, thanks

Ответить
Samarth Tandale
Samarth Tandale - 10.09.2023 18:36

Great explanation ! Underrated 100%

Ответить
Ravinder kaushik
Ravinder kaushik - 28.08.2023 05:15

Brilliant explaination

Ответить
Matteo Fioretti
Matteo Fioretti - 15.08.2023 17:26

Amazingly clear

Ответить
⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻
⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻ - 31.07.2023 09:55

Brilliant video. Thank you so much

Ответить
A. K. M NIHALUL KABIR
A. K. M NIHALUL KABIR - 07.07.2023 19:51

teaching can't be better. thank you.

Ответить
Xenomorph
Xenomorph - 02.07.2023 00:09

Amazing explanation

Ответить
Ash
Ash - 02.06.2023 03:46

u da goat no bap

Ответить
aim wan
aim wan - 01.06.2023 20:14

thanks a loot

Ответить
Jatin Jain
Jatin Jain - 26.05.2023 17:47

Thx a lot

Ответить
Rehab Emad El-Dein
Rehab Emad El-Dein - 05.04.2023 23:18

How to solve it using array by storing two numbers in 1D array with help of 2D array

Ответить
Bhavesh Bathija
Bhavesh Bathija - 24.03.2023 03:24

great explanation thanks alot for saving the day

Ответить
Rounak Sarkar
Rounak Sarkar - 17.02.2023 16:25

Avik ims pimro whatever you teamch

Ответить
Dhruv Singh
Dhruv Singh - 28.01.2023 17:29

Subscribed Sir,Amazing work

Ответить
Wais Yousofi
Wais Yousofi - 28.01.2023 09:38

thanks

Ответить
Anonymous User
Anonymous User - 25.01.2023 23:34

Aw this is amazing

Ответить
Anant Shekhar
Anant Shekhar - 15.12.2022 12:11

Amazing

Ответить
Sahil Jain
Sahil Jain - 14.12.2022 17:26

amazing explanation,short and brief...made the concept easy for me. thanks 😍

Ответить
Ahmed Alaa ElDin
Ahmed Alaa ElDin - 13.12.2022 10:38

Great explanation, Thank you

Ответить
Zareen Fatima
Zareen Fatima - 05.12.2022 16:42

How do we do this if we have odd lengths of numbers?

Ответить
Hans O'Flaherty
Hans O'Flaherty - 14.11.2022 01:49

thank you!! best explanation of the concept imo

Ответить
Christopher Ellis
Christopher Ellis - 05.11.2022 13:16

Four minutes of algebra is not a meaningful demonstration of how to do it. I want to know how it works with more than tens . The essence is already understood.

Ответить
CRISTHIAN SAMATA PUMAHUALCCA
CRISTHIAN SAMATA PUMAHUALCCA - 03.11.2022 23:00

nice job

Ответить
Vishalplayzz
Vishalplayzz - 30.10.2022 21:45

nice man

Ответить
Ardiris
Ardiris - 07.10.2022 18:31

This begs to be a homework problem in recursive LISP. Using binary numbers. LOL

Ответить
Poppymoonpaperie
Poppymoonpaperie - 06.10.2022 01:11

wow this helped so much thanks youuuu!!!!

Ответить
Inf Win
Inf Win - 05.10.2022 10:28

Fantastic and easy to understand tutorial! Just want to point out that the last line of code might not work in the case of an odd number of digits, since you calculate half with n//2.

Ответить
Aditya S
Aditya S - 26.09.2022 11:50

Great platform and very helpful!! Keep Going! One of the rare channels which explain algorithm design in such depth...

Ответить
Erforder Lich
Erforder Lich - 17.09.2022 13:38

His speech melody tells 'it's all very simple, seeee?' - My brain sounds drop to 40hz.

Ответить
Zulqarnain Haider
Zulqarnain Haider - 15.09.2022 14:23

any uetian present

Ответить
Luka Yt-Content
Luka Yt-Content - 26.08.2022 13:29

Nice video but i don t understand why do we need this. Cant we just multiply the numbers? Initially i thought that the method will be for that numbers that when are multiplied are giving a very large number that doesn t fit into long long or double.

Ответить
Jack O'Keefe
Jack O'Keefe - 31.07.2022 20:50

If you talked a bit slower and clearer would be a 10/10

Ответить
Mrwhosethebeast
Mrwhosethebeast - 14.06.2022 12:54

amazing explaination bro!

Ответить
AshwaqK
AshwaqK - 07.06.2022 02:19

Thank you!!

Ответить
Serhii
Serhii - 22.05.2022 17:41

One minor thing that is missing here is how to Actually calculate big numbers that don't fit regular programming primitives as Int or Double

Ответить
Nursultan Zhumabaev
Nursultan Zhumabaev - 09.05.2022 08:40

I don't get it, why n is 2?

Ответить
Florin Matei
Florin Matei - 05.04.2022 17:17

An algo optimisation idea that can be inspired by the hardware predication techniques, applied to soft data numbers to be multiplied, arraies to be multiplied, others may too, I think that may give us something to think about. Never tested nor verified by me, sorry! :-)

Ответить
Saqlain Sajid
Saqlain Sajid - 16.03.2022 08:11

Some feedback about calculating the time complexity

you say, the return statement has complexity O(n) but if you observe closely, the whole return statement is filled with O(1) operations,

I think the function "ad_plus_bc" has complexity of T(n/2)+O(n), because it has a subtraction operation, subtracting/adding has complexity of O(n)

The overall expression of complexity is correct.

T(n) = 3T(n/2) + O(n) + O(1), where O(1) can be ignored in the presence of O(n)

Ответить
Savash Zaynal
Savash Zaynal - 02.03.2022 06:28

I have a fat expensive algorithm book in my hand that could not even explain how x became a*10^(n/2) + b. Yet it only took you 10 seconds to explain it...

Ответить