Skip to content

File Management System Using Threaded Binary Search Tree

Notifications You must be signed in to change notification settings

alok1304/File-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

File-Management-System

File Management System Using Threaded Binary Search Tree A C++ application implementing a file management system using a Threaded Binary Search Tree (BST). This project demonstrates efficient file storage, retrieval, and deletion while maintaining the tree's sorted structure. The system uses threads for optimized traversal without recursion or stacks.

Features

  • File Properties:

    • Name
    • Size (in KB)
    • Type (e.g., .txt, .jpg)
  • Functionalities:

    • Add File: Insert files into the tree in lexicographical order.
    • Delete File: Remove files with proper handling of all node cases (leaf, one child, two children).
    • Display Files: Show all files sorted by name using in-order traversal.
    • Exit: Quit the application.
  • Threaded BST:

    • Uses left and right threads to simplify traversal, avoiding stack-based or recursive methods.
  • Tech Stack

    • Programming Language: C++
    • Data Structure: Threaded Binary Search Tree (Threaded BST)

How to Run

Clone the repository:

git clone https://github.com/your-username/File-Management-System.git
cd File-Management-System

Compile the code using a C++ compiler:

g++ -o FMS FMS.cpp

Run the application:

./FMS

About

File Management System Using Threaded Binary Search Tree

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages