we can serialize the binary tree using preorder traversal and marking NULL
pointer as '#'.

source:
http://www.leetcode.com/2010/09/serializationdeserialization-of-binary.html

On Wed, Jul 4, 2012 at 4:21 PM, Ashish Goel <[email protected]> wrote:

> my understanding is to either write the level order traversal noting
> parent, child relation or write the adjacency list into a file where we
> store the edges
>
> Best Regards
> Ashish Goel
> "Think positive and find fuel in failure"
> +919985813081
> +919966006652
>
>
> On Wed, Jul 4, 2012 at 3:58 PM, adarsh kumar <[email protected]> wrote:
>
>> Serialisation meaning? Numbering the nodes. Any specific order, or as
>> in level order??
>>
>> On 7/4/12, Ashish Goel <[email protected]> wrote:
>> > a] How would you serialize a binary tree in a file(improve it)
>> > b] serialization that you have chosen, write a code to reconstruct the
>> tree
>> > Best Regards
>> > Ashish Goel
>> > "Think positive and find fuel in failure"
>> > +919985813081
>> > +919966006652
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "Algorithm Geeks" 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/algogeeks?hl=en.
>> >
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" 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/algogeeks?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" 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/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" 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/algogeeks?hl=en.

Reply via email to