Binary Exponentiation

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024
  • How to quickly calculate a¹⁰⁰⁰⁰⁰⁰⁰⁰? Binary exponentiation can do it!
    Not only that, but the binary exponentiation algorithm has many other applications, such as computing modular exponentiation in RSA encryption, computing Fibonacci numbers, repeating a linear transformation n times, etc.
    Acknowledge: This video is made using the manim math engine: github.com/3b1b...

ความคิดเห็น • 15

  • @draido-dev
    @draido-dev 8 หลายเดือนก่อน +3

    i can imagine how complex the manim code could be to make something like this, it's just that you've chosen a less-known topic at it's name without clickbait, morocco ioi team is using this as a reference, keep it up!

  • @MahdiFalahy-w5r
    @MahdiFalahy-w5r 9 หลายเดือนก่อน +4

    TH-cam has truly committed a war crime towards your channel.

  • @atharvnadkarni2353
    @atharvnadkarni2353 ปีที่แล้ว +4

    Bro just keep going! You're making amazing videos. It's just a matter of time you're going to be a star. Plz don't stop...

  • @Bolo74894
    @Bolo74894 4 หลายเดือนก่อน +1

    Man I don't know why you have 485 subs you deserve atleast an 300 k

  • @moneyshorts3
    @moneyshorts3 6 หลายเดือนก่อน +2

    AMAZING VIDEO

  • @michaelxaviercanonizado7931
    @michaelxaviercanonizado7931 6 หลายเดือนก่อน +1

    great video! Finally found an answer as to how I can evaluate exponents fast for my RSA program. Thank you!

  • @Mr_Ioannis
    @Mr_Ioannis ปีที่แล้ว +2

    Ive litterly seen way more popular videos about this topic, but this one actually helps me so much! Nice video, and nice editing

  • @СергійМоскаленко-у8ы
    @СергійМоскаленко-у8ы ปีที่แล้ว +1

    Well, I got interested in the question in the last part of the video, so i tried to solve it using c++:
    (spoilers)
    .
    .
    .
    .
    .
    .
    as a result for n=100000 my program returned this:
    4 3 5 6 2 1
    CODE:
    #include
    using namespace std;
    int len=6; //number of elements in permutation
    int * multPerm(int *a,int *b) //transformation by permutation "a" of the sequence "b"
    {
    int *result=new int[len];
    for(int i=0;i>=1;
    }
    for(int i=0;i

  • @alinvarzaru529
    @alinvarzaru529 27 วันที่ผ่านมา

    This channel is such a gem! Please consider doing some more videos, don’t give up! These are great, wow can’t believe I’ve found it

  • @simardeepsinghmudhar7065
    @simardeepsinghmudhar7065 หลายเดือนก่อน

    God damn, great video, Thanks for this !!

  • @demerion
    @demerion ปีที่แล้ว +2

    Great video, keep going! :)

  • @СергійМоскаленко-у8ы
    @СергійМоскаленко-у8ы ปีที่แล้ว +2

    Impressive👍

  • @PMA_ReginaldBoscoG
    @PMA_ReginaldBoscoG ปีที่แล้ว

    Does using Chinese Remainder Theorem in binary exponentiation optimize the algorithm?
    Need your answer.
    If we represent the permutations of k elements as a permutation matrix of order k and use the matrix multiplication algorithm you devised, I think we will get the required result.

  • @benmezianeyacine5955
    @benmezianeyacine5955 4 หลายเดือนก่อน

    Finally I found someone explaining it ! Arigato Gozaimasuu !

    • @corexopro4964
      @corexopro4964 4 หลายเดือนก่อน

      HEY bro tell me oni-chan or Im going to use O(n!) (?