Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Tree and Lists

  • To: mathgroup at smc.vnet.net
  • Subject: [mg48350] Re: [mg48234] Tree and Lists
  • From: Omega Consulting <info at omegaconsultinggroup.com>
  • Date: Tue, 25 May 2004 07:17:18 -0400 (EDT)
  • References: <200405190642.CAA12845@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

On May 19, 2004, at 1:42 AM, Hermann Schmitt wrote:

> Hello,
> is there a general principle, how to represent trees by Lists of Lists.
> Hermann Schmitt

There are many ways to represent a tree in Mathematica. It depends a 
lot on what you want to do with your trees.

However, I find the simplest representation to be an expression, 
f[x,y,z,...], where f is the parent and x, y, z, etc. are children. If 
x, y, z, ... are atomic, then they are leaves. If they are expressions, 
then they are sub-trees.

Then when you're done creating your tree, you can view it with an 
application we wrote called TreeView.

http://omegaconsultinggroup.com/Products/tree

----------------------------------------------
Omega Consulting
The final answer to your Mathematica needs.
http://omegaconsultinggroup.com


  • References:
  • Prev by Date: WTD: point intersection in space
  • Next by Date: Re: Searching algorithm
  • Previous by thread: Tree and Lists
  • Next by thread: Re: Tree and Lists