Merge Sort Using Python | Tamil | Quick Through |

  Рет қаралды 16,423

Quick Through

Quick Through

4 жыл бұрын

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 жыл бұрын
Thank brother I am not understand your language but I am understand your programming method.❤️👍
@sagayarani4186
@sagayarani4186 3 жыл бұрын
Super bro ...neenga vera lvl easily understandable
@abdulhamid8075
@abdulhamid8075 3 жыл бұрын
bro it was really helpful thanks lot bro
@harishks308
@harishks308 3 жыл бұрын
Easy to underdtand bro nice😇 Thank you bro🙏
@QuickThrough
@QuickThrough 3 жыл бұрын
Tq bro
@Saikumar-ww6qe
@Saikumar-ww6qe 24 күн бұрын
Better don't use background music other than that the explanation was clear
@aadhithyaarun5605
@aadhithyaarun5605 2 жыл бұрын
Anna this is very useful and understandable
@yogeshinstructor781
@yogeshinstructor781 2 жыл бұрын
Bro next time lanthu background music kaa konjam kamikunga bro But Explanation Pakka Bro
@santhanamaryarulananthu9681
@santhanamaryarulananthu9681 Ай бұрын
Supper bro
@thoughtsofrz8587
@thoughtsofrz8587 Жыл бұрын
Thanks bro crystal clear explanation 👍😇🥵🥶
@sunilkumarpattypati3567
@sunilkumarpattypati3567 5 ай бұрын
super bro, referred many explanation yours is the best
@tonnyff5567
@tonnyff5567 Жыл бұрын
Thanks brother ♥️
@saphire0073
@saphire0073 Жыл бұрын
Thala vera level
@yogeshinstructor781
@yogeshinstructor781 2 жыл бұрын
Thank you so Much Bro ☺
@muskanp5582
@muskanp5582 2 жыл бұрын
Tqq bro🤜
@kabikabilan_
@kabikabilan_ 6 ай бұрын
Super Bro... Well Done ✅
@mahidhivi0079
@mahidhivi0079 2 жыл бұрын
Tnx anna🥰
@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 жыл бұрын
Cold🥶 aah bro?
@saikoushik7626
@saikoushik7626 Жыл бұрын
Use snakecase or camelcase vro
@praveensenthil488
@praveensenthil488 8 ай бұрын
Bro error varuthu bro
@sudharshan6729
@sudharshan6729 3 жыл бұрын
Ena linux version bro
@jeevitharavi2025
@jeevitharavi2025 2 жыл бұрын
parrot os
@k.poojaaksaya4229
@k.poojaaksaya4229 Жыл бұрын
Why we are using l. Pop(0) and r. Pop(0)... Plz reply anna
@indhu10kutty79
@indhu10kutty79 Жыл бұрын
Same doubt 🙁
Smart Sigma Kid #funny #sigma #comedy
00:26
CRAZY GREAPA
Рет қаралды 14 МЛН
IoT Examples In Daily Life | IoT devices examples | DeepSea Developments
1:53
DeepSea Developments
Рет қаралды 10 М.
Sorting Algorithms Explained in Tamil
1:04:23
CS in Tamil
Рет қаралды 22 М.