Submit Search
Upload
Merge sort
•
Download as DOC, PDF
•
0 likes
•
160 views
Md Isfaque
Follow
merge sort program
Read less
Read more
Education
Report
Share
Report
Share
1 of 1
Download now
Recommended
Cg lab cse-vii
Cg lab cse-vii
sajjan93
NSEG17 バグのはなし
NSEG17 バグのはなし
Daichi OBINATA
Dado un vector imprimir cuantas vocales tiene
Dado un vector imprimir cuantas vocales tiene
Popular University of Cesar
Include
Include
kien12f3
Bai day1
Bai day1
vacbalolenvadi90
Potenciación de números complejos
Potenciación de números complejos
javiertuheroe
Oopsprc1d
Oopsprc1d
Ankit Dubey
Linker
Linker
Satyamevjayte Haxor
Recommended
Cg lab cse-vii
Cg lab cse-vii
sajjan93
NSEG17 バグのはなし
NSEG17 バグのはなし
Daichi OBINATA
Dado un vector imprimir cuantas vocales tiene
Dado un vector imprimir cuantas vocales tiene
Popular University of Cesar
Include
Include
kien12f3
Bai day1
Bai day1
vacbalolenvadi90
Potenciación de números complejos
Potenciación de números complejos
javiertuheroe
Oopsprc1d
Oopsprc1d
Ankit Dubey
Linker
Linker
Satyamevjayte Haxor
Diario mural enero 2014
Diario mural enero 2014
Termika
Points of View: ключ к общению QAs и архитекторов – видим качество за диаграм...
Points of View: ключ к общению QAs и архитекторов – видим качество за диаграм...
SQALab
Power desinger
Power desinger
Juabitachunisita
54 PER CENT OF CITY LAKES GOBBLED UP
54 PER CENT OF CITY LAKES GOBBLED UP
Bangalore Generalnews
Teori model konseptual florence naightingale
Teori model konseptual florence naightingale
Firta Maafiyah
Civil Rights Movement
Civil Rights Movement
Megharvey
SRR Aqua
SRR Aqua
Bangalore Real
Buku putih-agenda-antikorupsi-bg-presiden-2014-2019
Buku putih-agenda-antikorupsi-bg-presiden-2014-2019
Ernima Sukmasari
Ilmu sosial dasar - Pertemuan 1
Ilmu sosial dasar - Pertemuan 1
Bayu Radityo
Achieving IT Strategic Directives When Evaluating a New Promotional Content E...
Achieving IT Strategic Directives When Evaluating a New Promotional Content E...
Cognizant
Why Start Email Marketing Now?
Why Start Email Marketing Now?
Forfront
Jesus on the Kingdom of God
Jesus on the Kingdom of God
Michael Hogg
LAR MARIA MÃE DE ÁFRICA .
LAR MARIA MÃE DE ÁFRICA .
Colégio Santa Teresinha
TUYỂN TẬP 25 ĐỀ THI HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2023 CÓ ĐÁP ÁN (SƯU...
TUYỂN TẬP 25 ĐỀ THI HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2023 CÓ ĐÁP ÁN (SƯU...
Nguyen Thanh Tu Collection
French Revolution (फ्रेंच राज्यक्रांती)
French Revolution (फ्रेंच राज्यक्रांती)
Shankar Aware
Seth-Godin-–-Tribus-PDFDrive-.pdf en espaoñ
Seth-Godin-–-Tribus-PDFDrive-.pdf en espaoñ
carrenoelio8
30 ĐỀ PHÁT TRIỂN THEO CẤU TRÚC ĐỀ MINH HỌA BGD NGÀY 22-3-2024 KỲ THI TỐT NGHI...
30 ĐỀ PHÁT TRIỂN THEO CẤU TRÚC ĐỀ MINH HỌA BGD NGÀY 22-3-2024 KỲ THI TỐT NGHI...
Nguyen Thanh Tu Collection
TUYỂN TẬP 20 ĐỀ THI KHẢO SÁT HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2020 (CÓ Đ...
TUYỂN TẬP 20 ĐỀ THI KHẢO SÁT HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2020 (CÓ Đ...
Nguyen Thanh Tu Collection
More Related Content
Viewers also liked
Diario mural enero 2014
Diario mural enero 2014
Termika
Points of View: ключ к общению QAs и архитекторов – видим качество за диаграм...
Points of View: ключ к общению QAs и архитекторов – видим качество за диаграм...
SQALab
Power desinger
Power desinger
Juabitachunisita
54 PER CENT OF CITY LAKES GOBBLED UP
54 PER CENT OF CITY LAKES GOBBLED UP
Bangalore Generalnews
Teori model konseptual florence naightingale
Teori model konseptual florence naightingale
Firta Maafiyah
Civil Rights Movement
Civil Rights Movement
Megharvey
SRR Aqua
SRR Aqua
Bangalore Real
Buku putih-agenda-antikorupsi-bg-presiden-2014-2019
Buku putih-agenda-antikorupsi-bg-presiden-2014-2019
Ernima Sukmasari
Ilmu sosial dasar - Pertemuan 1
Ilmu sosial dasar - Pertemuan 1
Bayu Radityo
Achieving IT Strategic Directives When Evaluating a New Promotional Content E...
Achieving IT Strategic Directives When Evaluating a New Promotional Content E...
Cognizant
Why Start Email Marketing Now?
Why Start Email Marketing Now?
Forfront
Jesus on the Kingdom of God
Jesus on the Kingdom of God
Michael Hogg
Viewers also liked
(12)
Diario mural enero 2014
Diario mural enero 2014
Points of View: ключ к общению QAs и архитекторов – видим качество за диаграм...
Points of View: ключ к общению QAs и архитекторов – видим качество за диаграм...
Power desinger
Power desinger
54 PER CENT OF CITY LAKES GOBBLED UP
54 PER CENT OF CITY LAKES GOBBLED UP
Teori model konseptual florence naightingale
Teori model konseptual florence naightingale
Civil Rights Movement
Civil Rights Movement
SRR Aqua
SRR Aqua
Buku putih-agenda-antikorupsi-bg-presiden-2014-2019
Buku putih-agenda-antikorupsi-bg-presiden-2014-2019
Ilmu sosial dasar - Pertemuan 1
Ilmu sosial dasar - Pertemuan 1
Achieving IT Strategic Directives When Evaluating a New Promotional Content E...
Achieving IT Strategic Directives When Evaluating a New Promotional Content E...
Why Start Email Marketing Now?
Why Start Email Marketing Now?
Jesus on the Kingdom of God
Jesus on the Kingdom of God
Recently uploaded
LAR MARIA MÃE DE ÁFRICA .
LAR MARIA MÃE DE ÁFRICA .
Colégio Santa Teresinha
TUYỂN TẬP 25 ĐỀ THI HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2023 CÓ ĐÁP ÁN (SƯU...
TUYỂN TẬP 25 ĐỀ THI HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2023 CÓ ĐÁP ÁN (SƯU...
Nguyen Thanh Tu Collection
French Revolution (फ्रेंच राज्यक्रांती)
French Revolution (फ्रेंच राज्यक्रांती)
Shankar Aware
Seth-Godin-–-Tribus-PDFDrive-.pdf en espaoñ
Seth-Godin-–-Tribus-PDFDrive-.pdf en espaoñ
carrenoelio8
30 ĐỀ PHÁT TRIỂN THEO CẤU TRÚC ĐỀ MINH HỌA BGD NGÀY 22-3-2024 KỲ THI TỐT NGHI...
30 ĐỀ PHÁT TRIỂN THEO CẤU TRÚC ĐỀ MINH HỌA BGD NGÀY 22-3-2024 KỲ THI TỐT NGHI...
Nguyen Thanh Tu Collection
TUYỂN TẬP 20 ĐỀ THI KHẢO SÁT HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2020 (CÓ Đ...
TUYỂN TẬP 20 ĐỀ THI KHẢO SÁT HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2020 (CÓ Đ...
Nguyen Thanh Tu Collection
Recently uploaded
(6)
LAR MARIA MÃE DE ÁFRICA .
LAR MARIA MÃE DE ÁFRICA .
TUYỂN TẬP 25 ĐỀ THI HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2023 CÓ ĐÁP ÁN (SƯU...
TUYỂN TẬP 25 ĐỀ THI HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2023 CÓ ĐÁP ÁN (SƯU...
French Revolution (फ्रेंच राज्यक्रांती)
French Revolution (फ्रेंच राज्यक्रांती)
Seth-Godin-–-Tribus-PDFDrive-.pdf en espaoñ
Seth-Godin-–-Tribus-PDFDrive-.pdf en espaoñ
30 ĐỀ PHÁT TRIỂN THEO CẤU TRÚC ĐỀ MINH HỌA BGD NGÀY 22-3-2024 KỲ THI TỐT NGHI...
30 ĐỀ PHÁT TRIỂN THEO CẤU TRÚC ĐỀ MINH HỌA BGD NGÀY 22-3-2024 KỲ THI TỐT NGHI...
TUYỂN TẬP 20 ĐỀ THI KHẢO SÁT HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2020 (CÓ Đ...
TUYỂN TẬP 20 ĐỀ THI KHẢO SÁT HỌC SINH GIỎI MÔN TIẾNG ANH LỚP 6 NĂM 2020 (CÓ Đ...
Merge sort
1.
MERGE SORT #include <stdio.h> int
merge(int a[], int l, int m, int r) { int i,j,k,v[100]; i=l,k=0,j=m+1; while(i<=m&&j<=r) { if(a[i]<a[j]) { v[k]=a[i]; i++; } else { v[k]=a[j]; j++; } k++; } while(i<=m) v[k++]=a[i++]; while(j<=r) v[k++]=a[j++]; for(i=l;i<=r;i++) a[i]=v[i-l]; } void merge_sort(int a[],int low,int high) { int mid; if(low<high) { mid=((low+high)/2); merge_sort(a,low,mid); merge_sort(a,mid+1,high); merge(a,low,mid,high); } } main() { int a[100],i,n; printf("Enter size: "); scanf("%d",&n); printf("Enter %d element: ",n); for(i=0;i<n;i++) { scanf("%d",&a[i]); } merge_sort(a,0, n-1); for(i=0;i<n;i++) { printf("%d ", a[i]); } scanf("%s"); }
Download now