完善下列折半插入排序算法。
Void binasort( struct node r[MAXSIZE], int n )
{ for( i=2; i<=n; i++ ) {
r[0]=r[i]; low=1; high=i-1;
while( low<=high ) {
mid=(1)_________;
if( r[0].key high="(2)_________;
else low=(3)_________;
}
for( j=i-1; j>=low; j-- )
(4)_________;
r[low]=r[0];
}
}