I have a tree:
a / \ b c / \ d f / \ g h
And the pattern:
x / \ y z / \ q p
As output I would like to have:
x: a y: b z: c q: d p: f
x: b y: f z: c q: g p: h
Is there any algorithm I could look at?
Software Engineering Stack Exchange is a question and answer site for professionals, academics, and students working within the systems development life cycle. It only takes a minute to sign up.Sign up to join this community
(a,0,0), (b,1,0), (c,1,1), (d,2,0)...