//bubblesort--------------------------------------------------------------------------
void bubbleSort(int v[],int len){
for (;len>0;len--)
for (int i=0;i<len;i++)
if(v[i]>v[i+1])swap(v[i],v[i+1]);
}
//bubblesort----------------------------------------------------------------------------
//selection sort---------------------------------------------------------------------
void selectionSort(int v[],int len){
int k,j,i;
for (j=0;k=j,j<=len;j++)
{
for (i=j;i<=len;i++)
if(v[k]>v[i])k=i;
if(k!=j)
swap(v[k],v[j]);
}
}
//selection sort---------------------------------------------------------------------