The *decimal to binary algorithm* contains a while loop that depends on the value associated with the variable identified as ** x**, but the range is divided in half at each iteration. Thus this is similar to the binary search algorithm and is of complexity

Last updated 2002/02/04

© J.A.N. Lee, 2002.