Skip to content

A Binary Tree Visualizer implemented purely in C - A combination of Data Structures & Computer Graphics.

License

Notifications You must be signed in to change notification settings

tusharnankani/binary-tree-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binary Tree Visualizer

A Binary Tree Visualizer implemented in C.

  • Combination of Computer Graphics (CG) and Data Structures (DS) mini projects.

binary-tree-visualizer-socialify-cover

Code for Traversal - tree_traversal.c (Part of a Data Structures Project)

Code for Visualizer - tree_visualization.c(Part of a Computer Graphics Project)

Demonstration

View the complete demonstration in this LinkedIn Post or in this video.

tree_traversal_gif

Features

  • Displays a customized tree. (Will be using the graphics.h header file in C.)
  • Displays Pre-Order, In-Order & Post-Order traversals.

Functions

Traversals

  • In-Order Traversal (LNR: Left-Node-Right)
  • Pre-Order Traversal (NLR: Node-Left-Right)
  • Post-Order Traversal (LRN: Left-Right-Node)

Setup

View the complete demonstration in this video.

  • Download Turbo C++, since we will be using the graphics.h header file, which is only supported in TURBO.
  • Clone the repository: git clone https://github.com/tusharnankani/binary-tree-visualizer.git
  • Copy the tree_visualization.c file.
  • Go to TURBOC3 > BIN, and paste the copied file.
  • Start TURBO C++, and open the respective file.
  • Compile the file using the command: Alt + F9
  • Run the file using the command: Ctrl + F9

Input

  • Enter the root node and simultaneously start entering left and right child for the nodes.
  • NOTE: For tree input take -1 as NULL.

  • Displays Pre-Order, In-Order & Post-Order traversals.

  • Displays tree.

Authors

  • Kavya Nair
  • Parth Namdev
  • Tushar Nankani

About

A Binary Tree Visualizer implemented purely in C - A combination of Data Structures & Computer Graphics.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages