👉 In computer science, a preorder data structure is one in which the elements of the data structure are ordered such that for every two different elements x and y in the data structure, the order (in lexicographical order) between them is determined by their values. In other words, if the element x has a value less than the element y, then x comes before y in the sorted list of all possible elements.