Skip to content

Latest commit

 

History

History
12 lines (12 loc) · 808 Bytes

File metadata and controls

12 lines (12 loc) · 808 Bytes

Serialization-Deserialization-of-Tree

How it work:

alt-text

Structure of tree:

alt-text

Description:

The simple serialization-deserialization API for storing a structure such as a tree in a binary file for the purpose of transferring data to another host or retrieving data later.

Notes:

  • server do only serialization of tree into binary file text.txt
  • To view a binary file, I recommend such a utility as ghex. Also you can use printBuffer function (her give the same result)
  • client only read generated lately binary file and restore Tree
  • Used breadth-first traversal