MathWorks interview question

Difference between a directed acyclic graph and binary search tree?

Interview Answer

Anonymous

15 Jun 2020

A binary search tree can fall under the category of a directed acyclic graph, but the opposite is not the case. Tree nodes can only have one parent whereas DAG nodes/vertices can have more than one incoming edge