SlideShare a Scribd company logo
This is the code of shellsort
void Shellsort( ElementType A[ ], int N )
{
int i, j, Increment; ElementType Tmp;
for( Increment = N/2; Increment > 0; Increment /= 2 )
for( i = Increment; i < N; i++ )
{
Tmp=A[i];
for(j=i;j>=Increment; j -= Increment )
if(Tmp
Solution
This is the code of shellsort
void Shellsort( ElementType A[ ], int N )
{
int i, j, Increment; ElementType Tmp;
for( Increment = N/2; Increment > 0; Increment /= 2 )
for( i = Increment; i < N; i++ )
{
Tmp=A[i];
for(j=i;j>=Increment; j -= Increment )
if(Tmp

More Related Content

More from ANANDSHOE

Pollinationis theprocessby whichpollenis transferred in the reproduc.pdf
Pollinationis theprocessby whichpollenis transferred in the reproduc.pdfPollinationis theprocessby whichpollenis transferred in the reproduc.pdf
Pollinationis theprocessby whichpollenis transferred in the reproduc.pdf
ANANDSHOE
 
A.B.(C)Journal Entries for the year 2014DateAccount title and ex.pdf
A.B.(C)Journal Entries for the year 2014DateAccount title and ex.pdfA.B.(C)Journal Entries for the year 2014DateAccount title and ex.pdf
A.B.(C)Journal Entries for the year 2014DateAccount title and ex.pdf
ANANDSHOE
 
c) increases the melting point .pdf
                     c) increases the melting point                   .pdf                     c) increases the melting point                   .pdf
c) increases the melting point .pdf
ANANDSHOE
 
fjgySolutionfjgy.pdf
fjgySolutionfjgy.pdffjgySolutionfjgy.pdf
fjgySolutionfjgy.pdf
ANANDSHOE
 
G is Hamiltonian graph.Hence a path exists which visits each verte.pdf
G is Hamiltonian graph.Hence a path exists which visits each verte.pdfG is Hamiltonian graph.Hence a path exists which visits each verte.pdf
G is Hamiltonian graph.Hence a path exists which visits each verte.pdf
ANANDSHOE
 
Enumerable A set is one whose members can be enumerated is called e.pdf
Enumerable A set is one whose members can be enumerated is called e.pdfEnumerable A set is one whose members can be enumerated is called e.pdf
Enumerable A set is one whose members can be enumerated is called e.pdf
ANANDSHOE
 
C.There is some evidence against H0, and a study using a larger samp.pdf
C.There is some evidence against H0, and a study using a larger samp.pdfC.There is some evidence against H0, and a study using a larger samp.pdf
C.There is some evidence against H0, and a study using a larger samp.pdf
ANANDSHOE
 
Bohr orbits have fixed sizes and fixed energiesSolutionBohr or.pdf
Bohr orbits have fixed sizes and fixed energiesSolutionBohr or.pdfBohr orbits have fixed sizes and fixed energiesSolutionBohr or.pdf
Bohr orbits have fixed sizes and fixed energiesSolutionBohr or.pdf
ANANDSHOE
 
c) At high altitudes the partial pressure of carbon dioxide as well .pdf
c) At high altitudes the partial pressure of carbon dioxide as well .pdfc) At high altitudes the partial pressure of carbon dioxide as well .pdf
c) At high altitudes the partial pressure of carbon dioxide as well .pdf
ANANDSHOE
 
AnswerFrogs have a pair of large eyes in the head which help in e.pdf
AnswerFrogs have a pair of large eyes in the head which help in e.pdfAnswerFrogs have a pair of large eyes in the head which help in e.pdf
AnswerFrogs have a pair of large eyes in the head which help in e.pdf
ANANDSHOE
 
Answer1. Benefits of separating header files from the cpp files ar.pdf
Answer1. Benefits of separating header files from the cpp files ar.pdfAnswer1. Benefits of separating header files from the cpp files ar.pdf
Answer1. Benefits of separating header files from the cpp files ar.pdf
ANANDSHOE
 
a) can be anionic b) can be polydentate c) can be Lewis base d.pdf
a) can be anionic b) can be polydentate c) can be Lewis base d.pdfa) can be anionic b) can be polydentate c) can be Lewis base d.pdf
a) can be anionic b) can be polydentate c) can be Lewis base d.pdf
ANANDSHOE
 
7Solution7.pdf
7Solution7.pdf7Solution7.pdf
7Solution7.pdf
ANANDSHOE
 
A base must contain OH in its chemical formul.pdf
                     A base must contain OH in its chemical formul.pdf                     A base must contain OH in its chemical formul.pdf
A base must contain OH in its chemical formul.pdf
ANANDSHOE
 
(a)PreOrder, PostOrder and Inorder are three ways you can iterate .pdf
(a)PreOrder, PostOrder and Inorder are three ways you can iterate .pdf(a)PreOrder, PostOrder and Inorder are three ways you can iterate .pdf
(a)PreOrder, PostOrder and Inorder are three ways you can iterate .pdf
ANANDSHOE
 

More from ANANDSHOE (15)

Pollinationis theprocessby whichpollenis transferred in the reproduc.pdf
Pollinationis theprocessby whichpollenis transferred in the reproduc.pdfPollinationis theprocessby whichpollenis transferred in the reproduc.pdf
Pollinationis theprocessby whichpollenis transferred in the reproduc.pdf
 
A.B.(C)Journal Entries for the year 2014DateAccount title and ex.pdf
A.B.(C)Journal Entries for the year 2014DateAccount title and ex.pdfA.B.(C)Journal Entries for the year 2014DateAccount title and ex.pdf
A.B.(C)Journal Entries for the year 2014DateAccount title and ex.pdf
 
c) increases the melting point .pdf
                     c) increases the melting point                   .pdf                     c) increases the melting point                   .pdf
c) increases the melting point .pdf
 
fjgySolutionfjgy.pdf
fjgySolutionfjgy.pdffjgySolutionfjgy.pdf
fjgySolutionfjgy.pdf
 
G is Hamiltonian graph.Hence a path exists which visits each verte.pdf
G is Hamiltonian graph.Hence a path exists which visits each verte.pdfG is Hamiltonian graph.Hence a path exists which visits each verte.pdf
G is Hamiltonian graph.Hence a path exists which visits each verte.pdf
 
Enumerable A set is one whose members can be enumerated is called e.pdf
Enumerable A set is one whose members can be enumerated is called e.pdfEnumerable A set is one whose members can be enumerated is called e.pdf
Enumerable A set is one whose members can be enumerated is called e.pdf
 
C.There is some evidence against H0, and a study using a larger samp.pdf
C.There is some evidence against H0, and a study using a larger samp.pdfC.There is some evidence against H0, and a study using a larger samp.pdf
C.There is some evidence against H0, and a study using a larger samp.pdf
 
Bohr orbits have fixed sizes and fixed energiesSolutionBohr or.pdf
Bohr orbits have fixed sizes and fixed energiesSolutionBohr or.pdfBohr orbits have fixed sizes and fixed energiesSolutionBohr or.pdf
Bohr orbits have fixed sizes and fixed energiesSolutionBohr or.pdf
 
c) At high altitudes the partial pressure of carbon dioxide as well .pdf
c) At high altitudes the partial pressure of carbon dioxide as well .pdfc) At high altitudes the partial pressure of carbon dioxide as well .pdf
c) At high altitudes the partial pressure of carbon dioxide as well .pdf
 
AnswerFrogs have a pair of large eyes in the head which help in e.pdf
AnswerFrogs have a pair of large eyes in the head which help in e.pdfAnswerFrogs have a pair of large eyes in the head which help in e.pdf
AnswerFrogs have a pair of large eyes in the head which help in e.pdf
 
Answer1. Benefits of separating header files from the cpp files ar.pdf
Answer1. Benefits of separating header files from the cpp files ar.pdfAnswer1. Benefits of separating header files from the cpp files ar.pdf
Answer1. Benefits of separating header files from the cpp files ar.pdf
 
a) can be anionic b) can be polydentate c) can be Lewis base d.pdf
a) can be anionic b) can be polydentate c) can be Lewis base d.pdfa) can be anionic b) can be polydentate c) can be Lewis base d.pdf
a) can be anionic b) can be polydentate c) can be Lewis base d.pdf
 
7Solution7.pdf
7Solution7.pdf7Solution7.pdf
7Solution7.pdf
 
A base must contain OH in its chemical formul.pdf
                     A base must contain OH in its chemical formul.pdf                     A base must contain OH in its chemical formul.pdf
A base must contain OH in its chemical formul.pdf
 
(a)PreOrder, PostOrder and Inorder are three ways you can iterate .pdf
(a)PreOrder, PostOrder and Inorder are three ways you can iterate .pdf(a)PreOrder, PostOrder and Inorder are three ways you can iterate .pdf
(a)PreOrder, PostOrder and Inorder are three ways you can iterate .pdf
 

Recently uploaded

Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 

Recently uploaded (20)

Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 

This is the code of shellsortvoid Shellsort( ElementType A[ ], int.pdf

  • 1. This is the code of shellsort void Shellsort( ElementType A[ ], int N ) { int i, j, Increment; ElementType Tmp; for( Increment = N/2; Increment > 0; Increment /= 2 ) for( i = Increment; i < N; i++ ) { Tmp=A[i]; for(j=i;j>=Increment; j -= Increment ) if(Tmp Solution This is the code of shellsort void Shellsort( ElementType A[ ], int N ) { int i, j, Increment; ElementType Tmp; for( Increment = N/2; Increment > 0; Increment /= 2 ) for( i = Increment; i < N; i++ ) { Tmp=A[i]; for(j=i;j>=Increment; j -= Increment ) if(Tmp