Library
Module
Module type
Parameter
Class
Class type
Data model to store the tree
Compare the data of the tree. Return an integer which symbolise the difference between two numbers.
val print_data : tree_data -> unit
Print data of a tree element.
Print the tree. The order : Left child, Node value, Right child.
Print the tree. The order : Node value, Left child, Right child.
Print the tree. The order : Left child, Right child, Node value.
Verify if the tree is valid. Scan the elements of the tree to find if there are in the right order.
val size : 'a abr -> int
Return the number of node.
val min_elt : 'a abr -> 'a
Return the minimal element of the tree. Send an error if the tree is empty
val min_elt_opt : 'a abr -> 'a option
Return the minimal element of the tree. The optionnal version of min_elt
val max_elt : 'a abr -> 'a
Return the maximal element of the tree. Send an error if the tree is empty
val max_elt_opt : 'a abr -> 'a option
Return the maximal element of the tree. The optionnal version of max_elt