Top "Tree" questions

A tree is a widely-used data structure that emulates a hierarchical tree-like structure with a set of linked nodes.

How to efficiently build a tree from a flat structure?

I have a bunch of objects in a flat structure. These objects have an ID and a ParentID property so …

algorithm tree language-agnostic
What's the difference between the data structure Tree and Graph?

Academically speaking, what's the essential difference between the data structure Tree and Graph? And how about the tree based search …

search data-structures map tree
Output of tree in command prompt

I was hoping to be able to use the tree /F /A > "desktop"\file.txt command to output only …

tree cmd
looping through an object (tree) recursively

Is there a way (in jQuery or JavaScript) to loop through each object and it's children and grandchildren and so …

javascript jquery tree
Maximum json size for response to the browser

I am creating tree with some custom control prepared with JavaScript/jquery. For creating the tree we are supplying json …

javascript jquery tree
create array tree from array list

i have a list like this: array( array(id=>100, parentid=>0, name=>'a'), array(id=>101, parentid=>100, …

php arrays recursion tree
Height of a binary tree

Consider the following code: public int heightOfBinaryTree(Node node) { if (node == null) { return 0; } else { return 1 + Math.max(heightOfBinaryTree(node.left), …

java algorithm tree
Tree plotting in Python

I want to plot trees using Python. Decision trees, Organizational charts, etc. Any library that helps me with that?

python tree plot
Makefile issue: smart way to scan directory tree for .c files

I am doing a project which is growing pretty fast and keeping the object files up date is no option. …

tree makefile
Is there pointer in C# like C++? Is it safe?

I'm writing an application that work with a tree data structure. I've written it with C++, now i want to …

c# c++ data-structures tree