euclid's algorithm for gcd

Поділитися
Вставка
  • Опубліковано 26 вер 2017
  • To access the translated content:
    1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation
    The video course content can be accessed in the form of regional language text transcripts, books which can be accessed under downloads of each course, subtitles in the video and Video Text Track below the video.
    Your feedback is highly appreciated. Kindly fill this form forms.gle/XFZhSnHsCLML2LXA6
    2. Regional language subtitles available for this course
    To watch the subtitles in regional languages:
    1. Click on the lecture under Course Details.
    2. Play the video.
    3. Now click on the Settings icon and a list of features will display
    4. From that select the option Subtitles/CC.
    5. Now select the Language from the available languages to read the subtitle in the regional language.

КОМЕНТАРІ • 49

  • @avinashchaudhary4231
    @avinashchaudhary4231 4 роки тому +13

    I have watched even MIT lectures but yours are best. First time something clicked in the mind. I understood how to optimize algo

  • @priyankaruby
    @priyankaruby 5 років тому +12

    omg this guy is super Genius !!! I never seen such a great teaching in my life ! thank you so much Madhavan

    • @tavilefty
      @tavilefty 2 роки тому +2

      he's your papa's age.

  • @iyodajedi
    @iyodajedi 10 місяців тому +1

    Beautiful Explanation. Kudos to you to explain this interesting algorithm and kudos to Euclid for discovering(? or inventing😁) this algorithm...😃

  • @nirmalrajtb3586
    @nirmalrajtb3586 5 років тому +4

    @5.07 return(gcd(max(n,diff),min(n,diff))) is correct

  • @abhishekmazumdar2072
    @abhishekmazumdar2072 4 роки тому +2

    wow..just wow!! simply wow.

  • @sruthir1236
    @sruthir1236 3 роки тому

    Why we have to manually change the input values as gcd(big_no,small_no) ??
    Will it give wrong solution if we give the input as it is like gcd(small_no,big_no) ??

  • @rimjhimgoenka5351
    @rimjhimgoenka5351 4 роки тому +8

    Why do we have to write gcd(max(n,diff),min(n,diff)) if the gcd function has the if statement to interchange if m

  • @The_vaishnav
    @The_vaishnav 2 роки тому +4

    dimmag khol diva ...one problem many solutions ....life lesson 🙂🙂🙂

  • @lucygaming9726
    @lucygaming9726 4 роки тому

    Great.

  • @gauravarora8405
    @gauravarora8405 5 років тому

    awesome

  • @luciferdelhi4352
    @luciferdelhi4352 6 років тому +1

    sir at the 15:00 slide are we missing an if loop before the starting of while loop??

  • @hb_shyampur
    @hb_shyampur 2 роки тому

    In case helpful.
    m=qn+r
    15=2*6+3
    ad=q(bd)+r
    5*3=2*(2*3)+3
    d divides r.

  • @srikanthkarunakaran1699
    @srikanthkarunakaran1699 5 років тому +1

    Thank you very much sir, you are the best in teaching!

  • @shubhankarsharma2221
    @shubhankarsharma2221 2 роки тому +2

    teacher took complicated topic and explained it with very low volume

  • @kevindave277
    @kevindave277 Рік тому

    Merci Madavan

  • @sahilkumarsingh
    @sahilkumarsingh 6 років тому

    Only 1 and 2 are coming as the GCD for every input ???? How

  • @myArchive1117
    @myArchive1117 5 років тому +1

    sir why are we using +1 in 'for' loop?

    • @aloksinghrawat9832
      @aloksinghrawat9832 5 років тому +5

      Because in python loop occurs for 1 less than the max. limit.
      So to neutralize it we increase the limit by 1.

  • @sivasatyanarayana9748
    @sivasatyanarayana9748 6 років тому +6

    sir the video sound was very less

    • @pk15692
      @pk15692 5 років тому

      You can use a volume booster for chrome to enhance the sound volume

    • @tavilefty
      @tavilefty 2 роки тому

      @@pk15692 thanks man.

  • @RuchiSingh-om7cz
    @RuchiSingh-om7cz 6 років тому +2

    Here last gcd will be gcd(1,2) i guess

    • @siddahantjain755
      @siddahantjain755 6 років тому +1

      No ruchi singh because of the condition (m,n)=(n,m)
      it will be (2,1) rather than (1,2)

  • @srinivasanthirunavukkarasu4499
    @srinivasanthirunavukkarasu4499 4 роки тому +10

    Feel like odd one out here
    Why hooked up with GCD for three lecture

  • @NMD137307
    @NMD137307 2 роки тому

    Good lec, thanks.

  • @vaibhavsingh8485
    @vaibhavsingh8485 5 років тому +2

    Why was I told the difference algo.

  • @shweethasajeev7048
    @shweethasajeev7048 5 років тому +10

    sir the volume is really low

    • @pk15692
      @pk15692 5 років тому +1

      You can use a volume booster for chrome to enhance the sound volume

    • @RamKumar-wq2us
      @RamKumar-wq2us 5 років тому +1

      download it then play it in vlc player

  • @manishrajput8109
    @manishrajput8109 6 років тому

    what is a mrcf ?????

    • @ritwiksinha7432
      @ritwiksinha7432 6 років тому +1

      Most Recent Common Factor

    • @prashantajabe2693
      @prashantajabe2693 6 років тому +1

      Variable

    • @myArchive1117
      @myArchive1117 5 років тому +2

      yeah its a variable which will be updated by most recent common factor in each iteration

  • @pasumarthiashik1099
    @pasumarthiashik1099 2 роки тому

    why if condition and assume in comments different.

  • @sanjayguptacg486
    @sanjayguptacg486 5 років тому

    bad sound quality

    • @pk15692
      @pk15692 5 років тому +2

      You can use a volume booster for chrome to enhance the sound volume