The ordered binary decision diagram is a canonical representation for Boolean functions, presented by Bryant as a comput representation for a broad class of interesting functions derived for circuits. However, the size of the diagram is very sensitive to the choice of ordering on the variables; hence, for some applications, such as differential cascode voltage switch (DCVS) trees, it becomes extremely important to find the ordering leading to the most compact representation. We present an algorithm for this problem with time complexity O(n23n), an improvement over the previous best, which required 0(n!2n). © 1990 IEEE