A tree sort is a sort algorithm that builds a binary search tree from the keys to be sorted, and then traverses the tree (in-order) so that the keys come out in sorted order. Its typical use is when sorting the elements of a stream from a file. Several other sorts would have to load the elements to a temporary data structure, whereas in a tree sort the act of loading the input into a data structure is sorting it.
Read more about Tree Sort: Efficiency, Example
Famous quotes containing the words tree and/or sort:
“On a tree by a river a little tom-tit
Sang Willow, titwillow, titwillow!
And I said to him, Dicky-bird, why do you sit
Singing, Willow, titwillow, titwillow?
Is it a weakness of intellect, birdie? I cried,
Or a rather tough worm in your little inside?”
—Sir William Schwenck Gilbert (18361911)
“The beginning of reform is not so much to equalize property as to train the noble sort of natures not to desire more, and to prevent the lower from getting more.”
—Aristotle (384322 B.C.)