danielakuinchtner / n-Ary_Tree

This program implements an n-ary tree.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

n-Ary_Tree

This program is a beta version (contains some bugs) of an n-ary tree implementation.

Running

To run just open the tree.html file in a browser and execute the available commands.

Commands

  • add [LEAF] [ROOT]: add node (up to 4 digits).
  • del [LEAF]: delete node.
  • consulte [LEAF]: it shows the consulted node in red, its root in blue and its leaves in green. Also shows its level in the tree.
  • root: shows all branch nodes in red.
  • leaf: shows all leaf nodes in red.

This was an assignment for Data Structure II class by MSc Evandro Luís Viapiana from University of Passo Fundo (2016/1).

About

This program implements an n-ary tree.


Languages

Language:JavaScript 81.3%Language:HTML 11.8%Language:CSS 6.9%