This project is written in C++ and implements several basic data structures using separate header and source files. The goal of this project is to provide practical solutions for different data structures that can be used in various programming applications.
- Array: Implementation of the Array data structure with operations like insertion, deletion, and resizing.
- Single Linked List: Implementation of a single linked list with operations such as insertion and deletion.
- Double Linked List: Implementation of a double linked list that allows traversal in both directions.
- Queue (Array): Queue implemented using an array.
- Queue (Linked List): Queue implemented using a linked list.
- Stack (Array): Stack implemented using an array.
- Stack (Linked List): Stack implemented using a linked list.
- Tree: Binary tree implementation with insertion, deletion, and search operations.
- Open the project in a development environment like Code::Blocks or Visual Studio.
- Build the code and run the
main.cppfile to test the various data structures.
main.cpp: The main file to run the code.include/: Contains header files for all data structures.src/: Contains the corresponding source files for the data structures.
Each data structure has its own header and source file, for example, Array.h and Array.cpp, QueueArray.h and QueueArray.cpp, etc.
insert_end,resize,insert_position,remove_last,remove_position,isempty
insert_lift,insert_right,remove_lift,remove_right,insert_at_position,searchh
insert_lift,insert_right,remove_lift,remove_right,reverse2,sort
enqueue,dequeue,getfront,getrear,isempty,isfull
enqueue,dequeue,getfront,getrear,isempty
push,pop,get_top,is_Full,is_Empty
push,pop,get_top,is_Full,is_Empty,sortt
insert_element,remove_element,search_element,print_pre_order,print_in_order,print_post_order,get_height
- GitHub: a7medhazem