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)
“In some sort of crude sense, which no vulgarity, no humor, no overstatement can quite extinguish, the physicists have known sin; and this is a knowledge which they cannot lose.”
—J. Robert Oppenheimer (19041967)