Top "Tree" questions

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

What javascript tree data structures are available?

Are there good libraries for manipulating trees in javascript? Just to be clear, I am looking for tree as in …

javascript tree
Plot trees for a Random Forest in Python with Scikit-Learn

I want to plot a decision tree of a random forest. So, i create the following code: clf = RandomForestClassifier(n_…

python tree scikit-learn random-forest pydot
What type of NoSQL database is best suited to store hierarchical data?

What type of NoSQL database is best suited to store hierarchical data? Say for example I want to store posts …

database tree nosql hierarchical-data
Difference between red-black trees and AVL trees

Can someone please explain what the main differences between these two data structures are? I've been trying to find a …

data-structures tree language-agnostic avl-tree red-black-tree
How do I print out a tree structure?

I'm trying to improve performance in our app. I've got performance information in the form of a tree of calls, …

c# .net tree pretty-print
How to flatten tree via LINQ?

So I have simple tree: class MyNode { public MyNode Parent; public IEnumerable<MyNode> Elements; int group = 1; } I have …

c# .net linq .net-4.0 tree
Traversing a tree of objects in c#

I have a tree that consists of several objects, where each object has a name (string), id (int) and possibly …

c# algorithm tree tree-traversal
Binary Tree Insert Algorithm

I recently finished implementing a Binary search tree for a project I was working on. It went well and I …

c++ tree insert binary-tree binary-search-tree
How to represent a data tree in SQL?

I'm writing a data tree structure that is combined from a Tree and a TreeNode. Tree will contain the root …

sql tree hierarchical-data
reconstructing a tree from its preorder and postorder lists

Consider the situation where you have two lists of nodes of which all you know is that one is a …

algorithm language-agnostic reference tree traversal