Top "Tree" questions

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

Build a simple, high performance Tree Data Structure in c#

I need to create a product catalog, in tree type. every tree node presents by a ID(string), the functions …

c# tree
How to display XML in a HTML page as a collapsible and expandable tree using Javascript?

How to display a XML document in a HTML page as a collapsible and expandable tree? I'd like to display …

javascript html xml tree
What's a good and stable C++ tree implementation?

I'm wondering if anyone can recommend a good C++ tree implementation, hopefully one that is stl compatible if at all …

c++ tree graph-theory
Generic tree implementation in Java

Is anyone aware of a generic tree (nodes may have multiple children) implementation for Java? It should come from a …

java collections reference tree generics
Why DFS and not BFS for finding cycle in graphs

Predominantly DFS is used to find a cycle in graphs and not BFS. Any reasons? Both can find if a …

algorithm tree graph-theory depth-first-search breadth-first-search
PHP tree structure for categories and sub categories without looping a query

I'm trying to create a list of categories with any number of sub categories, where sub categories can also has …

php arrays recursion tree multidimensional-array
Reverse A Binary Tree (Left to Right)

I was looking at interview questions and I recently came upon one that asked you how to reverse a general …

java data-structures tree binary-tree reverse
Convert a series of parent-child relationships into a hierarchical tree?

I have a bunch of name-parentname pairs, that I'd like to turn into as few heirarchical tree structures as possible. …

php recursion tree
Parsing an arithmetic expression and building a tree from it in Java

I needed some help with creating custom trees given an arithmetic expression. Say, for example, you input this arithmetic expression: (5+2)*7 …

java parsing tree
Build a tree from a flat array in PHP

I've looked around the internet and haven't quite found what I'm looking for. I have a flat array with each …

php arrays tree flat