Merge Sort Using Python | Tamil | Quick Through |

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.ย. 2024
  • Hello Guys!
    In this Video, we going to
    do merge sort in Python
    Video Language:- Tamil
    ----------------------------------
    ALGORITHM:
    1.Create a function named mergesort
    2. Find the mid of the list
    3. Assign lefthalf = alist[:mid] and righthalf = alist[mid:]
    4. Initialise i=j=k=0
    5. while i (less than ) len(lefthalf) and j (less than) len(righthalf), perform the following
    if lefthalf[i] (less than) righthalf[j]:
    alist[k]=lefthalf[i]
    Increment i
    else
    alist[k]=righthalf[j]
    Increment j
    Increment k
    6. while i (less than) len(lefthalf),perform the following
    alist[k]=lefthalf[i]
    Increment i
    Increment k
    7. while j (less than) len(righthalf), perform the following
    alist[k]=righthalf[j]
    Increment j
    Increment k
    8. Print the sorted list
    PROGRAM:
    def mergeSort(alist):
    print("Splitting ",alist)
    if len(alist)(greater than)1:
    mid = len(alist)//2
    lefthalf = alist[:mid]
    righthalf = alist[mid:]
    mergeSort(lefthalf)
    a=[]
    n=int(input('Enter upper limit:'))
    for i in range(n):
    a.append(int(input()))
    #alist = [54,26,93,17,77,31,44,55,20]
    mergeSort(a)
    print(a)
    -----------------------------------------------
    keywords : How to find merge sort in python tamil
    How to find merge sort in python in tamil, Merge sort in python tamil
    anna university lab manual tamil python laboratory merge sort in python
    quick through , quick through tamil .
    ----------------------------------------------
    thanks for watching this guys ! and make sure to
    subscribe this channel:)

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

  • @sanjuvyas1948
    @sanjuvyas1948 3 ปีที่แล้ว +8

    Thank brother I am not understand your language but I am understand your programming method.❤️👍

  • @sagayarani4186
    @sagayarani4186 3 ปีที่แล้ว +5

    Super bro ...neenga vera lvl easily understandable

  • @abdulhamid8075
    @abdulhamid8075 3 ปีที่แล้ว +7

    bro it was really helpful thanks lot bro

  • @Saikumar-ww6qe
    @Saikumar-ww6qe 2 หลายเดือนก่อน +1

    Better don't use background music other than that the explanation was clear

  • @harishks308
    @harishks308 3 ปีที่แล้ว +7

    Easy to underdtand bro nice😇
    Thank you bro🙏

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

    Anna this is very useful and understandable

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

    Bro next time lanthu background music kaa konjam kamikunga bro
    But Explanation Pakka Bro

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

    Supper bro

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

    Thanks bro crystal clear explanation 👍😇🥵🥶

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

    Super Bro...
    Well Done ✅

  • @yogeshinstructor781
    @yogeshinstructor781 2 ปีที่แล้ว

    Thank you so Much Bro ☺

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

    super bro, referred many explanation yours is the best

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

    Tqq bro🤜

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

    Thanks brother ♥️

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

    Tnx anna🥰

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

    Thala vera level

  • @user-pq9pn7pf6y
    @user-pq9pn7pf6y ปีที่แล้ว

    bro for loop potrukeengala bro L kum R kum function call pandradhuku munaadi adhula namma yen bro elements ah i ku assingn pannaum
    konjam clearpanunga bro

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

    Cold🥶 aah bro?

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

    Use snakecase or camelcase vro

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

    Bro error varuthu bro

  • @k.poojaaksaya4229
    @k.poojaaksaya4229 ปีที่แล้ว

    Why we are using l. Pop(0) and r. Pop(0)... Plz reply anna

  • @sudharshan6729
    @sudharshan6729 3 ปีที่แล้ว +3

    Ena linux version bro