0
$\begingroup$

enter image description here

So from the above diagram, we can move either right or down. So a binary tree is built that way. It's written "If we had intermingled common nodes across different branches, we would have got a graph instead" I am unable to visualize how a graph can be formed out of this. Will it be a graph with only 2 columns? Please help

Source: https://loveforprogramming.quora.com/Backtracking-Memoization-Dynamic-Programming

$\endgroup$
  • $\begingroup$ Welcome to Computer Science! If the diagram comes from an online course or article, could you please add a URL in the question by using the edit button? If it comes from a book or a paper, a reference. Besides paying proper attribute to the original source, all that information also motivates and helps people answer your question faster and better. $\endgroup$ – Apass.Jack Oct 26 '18 at 0:35
  • $\begingroup$ @Apass.Jack Sorry bout that! Added the reference $\endgroup$ – Arjun Hegde Oct 26 '18 at 0:48
1
$\begingroup$

If you just want the visualization, then have a look at this Graph visualization of above tree

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.