Hi all,
I want to generate a .dot file (to graphwiz) from well formed paretheses, but haven't figured yet how can I convert them.
example:
So the '('s mean 1s and they are nodes. ')' mean 0s and they are leaves. The order is preorder, if i am not wrong.Qt Code:
1 2 3 4 5 6 ( ( ) ( ) ) 1 1 0 1 0 0 1 / \ 2 *7 / \ *3 4 / \ *5 *6To copy to clipboard, switch view to plain text mode
My question is, how create from 1100100 to 1--2, 2--*3, 2--4, 4--*5, 4--*6, 1--*7.
I see the left connections but not the right ones. Left (i,i+1), if i==1.
Bookmarks