Merge Sort Using Python | Tamil | Quick Through | #PythonProgramming #AnnaUniversity #QuickThrough

  Рет қаралды 17,006

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
@Saikumar-ww6qe
@Saikumar-ww6qe 3 ай бұрын
Better don't use background music other than that the explanation was clear
@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
@sunilkumarpattypati3567
@sunilkumarpattypati3567 8 ай бұрын
super bro, referred many explanation yours is the best
@santhanamaryarulananthu9681
@santhanamaryarulananthu9681 4 ай бұрын
Supper bro
@yogeshinstructor781
@yogeshinstructor781 2 жыл бұрын
Bro next time lanthu background music kaa konjam kamikunga bro But Explanation Pakka Bro
@aadhithyaarun5605
@aadhithyaarun5605 2 жыл бұрын
Anna this is very useful and understandable
@kabikabilan_
@kabikabilan_ 9 ай бұрын
Super Bro... Well Done ✅
@SRINIGHIL20
@SRINIGHIL20 Жыл бұрын
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
@thoughtsofrz8587
@thoughtsofrz8587 Жыл бұрын
Thanks bro crystal clear explanation 👍😇🥵🥶
@saphire0073
@saphire0073 Жыл бұрын
Thala vera level
@tonnyff5567
@tonnyff5567 Жыл бұрын
Thanks brother ♥️
@yogeshinstructor781
@yogeshinstructor781 2 жыл бұрын
Thank you so Much Bro ☺
@muskanp5582
@muskanp5582 2 жыл бұрын
Tqq bro🤜
@mahidhivi0079
@mahidhivi0079 2 жыл бұрын
Tnx anna🥰
@k.poojaaksaya4229
@k.poojaaksaya4229 Жыл бұрын
Why we are using l. Pop(0) and r. Pop(0)... Plz reply anna
@indhu10kutty79
@indhu10kutty79 Жыл бұрын
Same doubt 🙁
@sudharshan6729
@sudharshan6729 3 жыл бұрын
Ena linux version bro
@jeevitharavi2025
@jeevitharavi2025 2 жыл бұрын
parrot os
@waitandsee1511
@waitandsee1511 3 жыл бұрын
Cold🥶 aah bro?
@saikoushik7626
@saikoushik7626 Жыл бұрын
Use snakecase or camelcase vro
@praveensenthil488
@praveensenthil488 11 ай бұрын
Bro error varuthu bro
Зу-зу Күлпаш 2. Бригадир.
43:03
ASTANATV Movie
Рет қаралды 752 М.
How it feels when u walk through first class
00:52
Adam W
Рет қаралды 21 МЛН
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,4 МЛН
Cool Parenting Gadget Against Mosquitos! 🦟👶
00:21
TheSoul Music Family
Рет қаралды 19 МЛН
Зу-зу Күлпаш 2. Бригадир.
43:03
ASTANATV Movie
Рет қаралды 752 М.