ban demo chua cmt.docx - /* * To change this license...

This preview shows page 1 - 2 out of 2 pages.

The preview shows page 1 - 2 out of 2 pages.
/** To change this license header, choose License Headers in Project Properties.* To change this template file, choose Tools | Templates* and open the template in the editor.*/package shellsort;/**** @author quoch*/public class Shellsort {/*** @param args the command line arguments*/public static void shellsort(int []a){// ham sap xep chenint temp;int gap = a.length/2;while(gap >0){for(int i = gap; i<a.length;i++){temp = a[i];int pre= i - gap;
End of preview. Want to read all 2 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
mathew
Tags
2000 albums, ShellSort, Web template, public class ShellSort, public static void shellSort

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture