Visualize a tree: Difference between revisions

m
added whitespace before the TOC (table of contents), added a ;Task: (bold) header, added other whitespace and highlighting to the task's preamble, added bullet points.
m (added whitespace before the TOC (table of contents), added a ;Task: (bold) header, added other whitespace and highlighting to the task's preamble, added bullet points.)
Line 1:
{{task}}
A tree structure (i.e. a rooted, connected acyclic graph) is often used in programming. It's often helpful to visually examine such a structure. There are many ways to represent trees to a reader, such as indented text (à la unix <code>tree</code> command), nested HTML tables, hierarchical GUI widgets, 2D or 3D images, etc.
 
A tree structure &nbsp; (i.e. a rooted, connected acyclic graph) &nbsp; is often used in programming.
'''Task''': Write a program to produce a visual representation of some tree. The content of the tree doesn't matter, nor does the output format, the only requirement being that the output is human friendly. Make do with the vague term "friendly" the best you can.
 
It's often helpful to visually examine such a structure.
 
There are many ways to represent trees to a reader, such as:
:::* &nbsp; indented text &nbsp; (à la unix <code> tree </code> command)
:::* &nbsp; nested HTML tables
:::* &nbsp; hierarchical GUI widgets
:::* &nbsp; 2D &nbsp; or &nbsp; 3D &nbsp; images
:::* &nbsp; etc.
 
;Task:
Write a program to produce a visual representation of some tree.
 
'''Task''': Write a program to produce a visual representation of some tree. The content of the tree doesn't matter, nor does the output format, the only requirement being that the output is human friendly. Make do with the vague term "friendly" the best you can.
 
Make do with the vague term "friendly" the best you can.
<br><br>
 
=={{header|Ada}}==