This repository contains implementations of various fundamental data structures and sorting algorithms in C++. Each file corresponds to a specific data structure or algorithm, providing modular, reusable code that can be used as a learning resource or as a foundation for more complex projects.
- Binary Search Tree (BST): Implementation of binary search trees with standard operations (insert, delete, search) in
binarytree.cppandbinarytree.h. - AVL Tree: Self-balancing binary search tree in
UserAVL.cppandUserAVL.h. - Linked List: Basic linked list data structure in
linkedlist main.cp. - Queue: Queue data structure in
queue.cppandqueue.hpp, implemented using linked lists. - Stack: Stack data structure in
stacks.cppandstacks.hpp.
- Bubble Sort: Implementation in
bubble sort main.cpp. - Insertion Sort: Implementation in
insertion sort main.cpp. - Merge Sort: Implementation in
merge sort main.cpp. - Quick Sort: Implementation in
quicksort.cpp. - Selection Sort: Implementation in
selection sort main.cpp.
Each .cpp file contains the main functions and test cases for the respective data structures and sorting algorithms. To compile and run any specific file, use the following command in your terminal:
g++ -o output_file_name file_name.cpp
./output_file_name