Topological and categorical properties of binary trees


  • H. Pajoohesh Medgar Evers College



Algorithm, Decision tree, Lower topology, Semilattice


Binary trees are very useful tools in computer science for estimating the running time of so-called comparison based algorithms, algorithms in which every action is ultimately based on a prior comparison between two elements. For two given algorithms A and B where the decision tree of A is more balanced than that of B, it is known that the average and worst case times of A will be better than those of B, i.e., ₸A(n) ≤₸B(n) and TWA (n)≤TWB (n). Thus the most balanced and the most imbalanced binary trees play a main role. Here we consider them as semilattices and characterize the most balanced and the most imbalanced binary trees by topological and categorical properties. Also we define the composition of binary trees as a commutative binary operation, *, such that for binary trees A and B, A * B is the binary tree obtained by attaching a copy of B to any leaf of A. We show that (T,*) is a commutative po-monoid and investigate its properties.


Download data is not yet available.

Author Biography

H. Pajoohesh, Medgar Evers College

Department of Mathematics, 1150 Carroll Street, Brooklyn, NY 11225-2298, USA.


J. Adamek, H. Herrlich and G. Strecker, Abstract and Concrete Categories, John Wiley and Sons, Inc., 1990.

A. Aho, J. Hopcroft and J. Ullman, Data Structures and Algorithms, Addison-Wesley Series in Computer Science and Information Processing, Addison-Wesley, 1983.

G. Birkhoff. Lattice Theory, American Mathematical Society Colloquium Publications, Volume XXV, 1967.

B. C. Pierce, Basic category theory for computer scientists, Foundations of computing series 1991.

G. K. Gierz, K. H. Hofmann, K. Keimel, J. D. Lawson, M. W. Mislove and D. S. Scott, A Compendium of Continuous Lattices, Springer-Verlag, Berlin, 1980.

D. Knuth, The Art of Computer Programming vol. 1, Addison-Wesley, 1973.

D. Knuth, The Art of Computer Programming vol. 3, Addison-Wesley, 1973.

R. Kopperman and R.Wilson, On the role of finite, hereditarily normal spaces and maps in the genesis of compact Hausdorff spaces, Topology Appl. 135 (2004), 265-275.

M. O’Keeffe, H. Pajoohesh and M. Schellekens, On the relation between balance and speed of algorithms, Hadronic Journal, to appear.

M. O’Keeffe, H. Pajoohesh and M. Schellekens, Decision trees of algorithms and a semivaluation to measure their distance, Electron. Notes Theor. Comput. Sci. (Proceeding of MFCSIT 2004), to appear.

D. Stott Parker and P. Ram, The construction of Huffman codes is a submodular (”convex”) optimization problem over a lattice of binary trees, Sociely for industrial and Applied Mathematics 28, no. 5, 1875–1905.


How to Cite

H. Pajoohesh, “Topological and categorical properties of binary trees”, Appl. Gen. Topol., vol. 9, no. 1, pp. 1–14, Apr. 2008.



Regular Articles