I have a problem with Materialized path, so I thought may be here somebody can help me. I wrote a class which provides operations with Materialized path such as add, edit, delete and move. It’s pretty easy, but I have a problem with tree normalization.
Imagine we have the following tree:
and we need to change it to:
How can we do it? I mean can somebody give an algorithm?