On 05-10-2010, Nhatdx <[email protected]> wrote:
> Hi every one, I want to create a tree with many children to store a
> dictionary, however, I don't know how to delete or insert a node in
> this tree, I need help, thanks.
>

You can directly use Set or Map which use AVL trees:
http://caml.inria.fr/pub/docs/manual-ocaml/libref/Map.html
http://caml.inria.fr/pub/docs/manual-ocaml/libref/Set.html

You can also have a look at their implementation to know precisely how
they delete/insert nodes:
http://caml.inria.fr/cgi-bin/viewcvs.cgi/ocaml/trunk/stdlib/set.ml?rev=6694&view=markup

Regards,
Sylvain Le Gall

-- 
You received this message because you are subscribed to the Google Groups 
"ocaml-developer" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ocaml-developer?hl=en
For other OCaml forums, see http://caml.inria.fr/resources/forums.en.html

Reply via email to