求大神给讲讲这个程序
void select(hufftree *p,int j,int *s){ int i,m,n,mid,t;
hufftree *q;
m=n=MAX;
for(i=0,q=p;i<j;i++,q++)
if(q->parent==0)
{ if(q->weight<m)
{ mid=m; m=q->weight; n=mid;
t=*s; *s=i; *(s+1)=t;
}
else if(q->weight<n)
{ n=q->weight; *(s+1)=i;}
}
}