思考:在含有n个元素的一维数组中顺序查找一个。值k的数组元素的算法:int search(int a int n, int k){int Efor(i=0; isn; i )if(a[i]= =k)break;return i;”考虑此算法的时间复杂度。