In python binary search to find the mid value i use:
mid=math.ceil((high+low)/2).
Is ceil more optimal or should I use floor or round?
for the algorithm there is no difference in performance, i think the only difference is in the cost of the operation, floor should be the easiest one because the computer doesn't need to do anything except remove the floating point part.