I want to store the AVL tree in a file in some format. How can I do that?

In this case, so that he had a readable look, but also so that it could be in the written version (which you edit yourself), then assemble it into a tree.

I don't know what to do yet. If there are any suggestions, I will be happy to hear them out! Thanks in advance!

  • one
    xml ? - mega
  • well, you can store in the form "id_cell" + "id_parent" when loading, sort by parent ( < ) and build a tree ... but then the meaning of AVL-Tree is lost ... or stored simply as a list (without id) and then build a tree with Zero - ProkletyiPirat

0