Skip to content

About

The Tree Traversal Simulator is an interactive 2D C++/SGG (Simple Game Graphics Library) educational application for binary trees. Users build custom trees via drag-and-drop mechanics and observe step-by-step stop-motion animations of Preorder, Inorder, Postorder, and Level-order (BFS) traversals with real-time audiovisual feedback.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

INTERACTIVE APPLICATION USING A NODE NETWORK: REPRESENTATION OF TREE TRAVERSALS IN A USER CREATED BINARY TREE

Assignment in Computer Programming with C++


C++


🌳 The Binary Tree Traversal Simulator is an interactive educational 2D graphics application in C++ designed to facilitate the intuitive understanding of Binary Tree structures and their core traversal algorithms.


🎬 Demo (GIF)

Binary Tree Traversal Simulator


🛠️ The software allows users to freely construct binary trees on an interactive canvas, establish parent-child relationships using drag-and-drop mechanics, and follow step-by-step stop-motion animations of Preorder, Inorder, Postorder, and Level-order (BFS) traversals. The implementation is built on top of the Simple Game Graphics (SGG) framework, leveraging its 2D rendering pipeline, event message loop, input polling, and asset management systems for fonts, textures, and audio playback.


Full Documentation


📺 Short Demo Video - Execution example

demo-video.mp4

Key Features

  • Interactive Binary Tree Builder
  • 4 Traversal Algorithms:
    • Preorder
    • Inorder
    • Postorder
    • Level-order / BFS
  • Audiovisual Feedback
  • Robust Tree Validation

Software Architecture & OOP Patterns

  • Singleton Pattern
  • Polymorphic Scene Pipeline
  • Component-Based UI & Interfaces
    • GameObject
    • Widget
    • Interactable
  • Generic Data Representation: Node<T>
  • Dynamic Memory Safety
Cppp

Tech Stack & Dependencies

  • Language: C++ (Visual Studio 2022, x64)
  • Graphics Framework: Simple Game Graphics (SGG)
  • Standard Library (STL): std::vector, std::stack, std::queue

1. Open Project:

Open TreeProject.sln using Visual Studio 2022.

2. Configure & Build:

  • Set configuration to Debug or Release and architecture to x64.
  • Press F5 (or Local Windows Debugger) to build and launch the application.

👤 Author

Athanasios Gourdomichalis - GitHub Profile


About

The Tree Traversal Simulator is an interactive 2D C++/SGG (Simple Game Graphics Library) educational application for binary trees. Users build custom trees via drag-and-drop mechanics and observe step-by-step stop-motion animations of Preorder, Inorder, Postorder, and Level-order (BFS) traversals with real-time audiovisual feedback.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages