4.试将折半查找的算法改写成递归算法。Int  bisearch (sqlist L,int low, int high , elemtype x ) {If (low>high) return( 0 );else {if (L.data[mid]= =x) return (mid);else if (L.data[mid]>x) bisearch(L,low,mid-1,x);else  bisearch(L,mid+1,high,x);}}//bisearch

时间:2022-11-11 07:47:43

相似题目