This is the pseudo code that i want to calculate time complexity ,i think it is a binary search algorithm but i fail when calculating the complexity because it is reducing logarithamic.
   USE variables half-array,found,middle element
   SET half-array=initial array;
   SET found=True;
 Boolean SearchArray(half-array)
   find middle element in half-array;
   Compare search key with middle element;
   IF middle element==search key THEN
           SET found=True;
   ELSE
        IF search key< middle element THEN
          SET half-array=lower half of initial array;
        ELSE
          SET half-array=upper half of initial array;
 SearchArray(half-array)
 
    
 
     
     
    