I think it is as I have drawn it, @Enoizat.
The first value in that long line is the parent of node 2.
The second value is the parent of node 3.
The third value is the parent of node 4.
...
The 10th value is the parent of node 11.
So if the line giving the parents is
1 1 1 2 2 2 3 3 3 4
then nodes 2, 3 and 4 all have parent 1,
nodes 5, 6, 7 have parent 2,
nodes 8, 9, 10 have parent 3,
node 11 has parent 4.
The tree is then
1
|
/---------+--------\
| | |
2 3 4
| | |
/--+--\ /--+--\ |
| | | | | | |
5 6 7 8 9 10 11 |
as drawn earlier. I needed a somewhat asymmetric tree to test more values of u. I could have done with testing more levels, but the input file got longer and longer.