PENGGUNAAN STRUKTUR DATA STACK DALAM PEMROGRAMAN C++ DENGAN PENDEKATAN ARRAY DAN LINKED LIST
The background of this research is based on the importance of efficiency in implementing the Stack data structure, which is widely used in various programming applications such as mathematical expression evaluation, memory management, and undo/redo features. Two common approaches, namely Array and Linked List, each have their advantages and disadvantages in terms of execution efficiency, memory usage, and flexibility. This study compares the implementation of the Stack data structure using these two approaches, focusing on execution time efficiency, memory usage, and size flexibility. Using an experimental method, the implementation was conducted in C++ programming language through scenarios such as mathematical expression evaluation and undo/redo features. The results show that the Array approach is more efficient for static data access, while the Linked List excels in size flexibility and dynamic memory allocation for variable data. The study concludes that the choice of approach depends on the specific application requirements. These findings are expected to assist software developers in selecting the appropriate Stack implementation method.
Authors
- Raditia Vindua
- Arsil Mujayanah
- Ahmad Fahmi Abdillah
- Risky Dwi Setiyawan
- Doni Hermawan
Institutions
- Universitas Pamulang (ID)
Publication Details
- Journal
- JUTECH Journal Education and Technology
- Published
- 2024-12-29
- DOI
- https://doi.org/10.31932/jutech.v5i2.4263
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00