PENGGUNAAN STRUKTUR DATA STACK DALAM PEMROGRAMAN C++ DENGAN PENDEKATAN ARRAY DAN LINKED LIST

Risky Dwi Setiyawan, Doni Hermawan, Ahmad Fahmi Abdillah, Arsil Mujayanah, Raditia Vindua

Abstract


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.

 

 


Keywords


stack; array; linked list; execution efficiency; memory usage; data structures

Full Text:

PDF

References


Ahmad, A. (2024). Algoritma dan Pemrograman. https://www.researchgate.net/publication/382560738

Alphacodingskills. (n.d.). Data Structure - Circular Doubly Linked List. Https://Www.Alphacodingskills.Com/Ds/Circular-Doubly-Linked-List.Php.

Ayoosh Sharma. (2021, June 9). Circular Singly Linked List. Https://Javadevjournal.Com/Data-Structure/Circular-Singly-Linked-List/.

Geeksforgeeks. (2024a, August 12). Doubly Linked List Tutorial. Https://Www.Geeksforgeeks.Org/Doubly-Linked-List/.

geeksforgeeks. (2024b, December 6). What is Stack Data Structure? A Complete Tutorial. https://Origin.Geeksforgeeks.Org/Introduction-to-Stack-Data-Structure-and-Algorithm-Tutorials/.

Hafiz, S., Ginting, N., Effendi, H., Kumar, S., Marsisno, W., Ria, Y., Sitanggang, U., Anwar, K., Putu, N., Santiari, L., Setyowibowo, S., Sigar, R., Atho’illah, I., Setyantoro, D., Nyoman, N., & Smrti, E. (2023). Pengantar Struktur Data PT. MIFANDI MANDIRI DIGITAL.

Indah Kusuma Astuti. (2019). STRUKTUR DATA LINKED LIST. https://doi.org/https://doi.org/10.31219/osf.io/8pj27

Joko Musridho, R. (2024). Diktat STRUKTUR DATA. https://repository.universitaspahlawan.ac.id/1887/1/%282024%29%20Musridho%20-%20Diktat%20Struktur%20Data.pdf

Mustakim, Dahlan Susilo, Mokhammad Syafaat, Amirul Mukminin, Deny Ariestiandy, Febrya Christin H. Buan, Edy Wihardjo, Luisa Sentia Paly, Erna Juniasti Malaikosa, & Nur Hayati. (2024). STRUKTUR DATA DAN ALGORITMA (Paput Tri Cahyono, Ed.). Yayasan Cendikia Mulia Mandiri.

Purwono, Alfian Ma Arif, & Iswanto. (2023). Belajar Struktur Data dengan Python Penerbit UHB Press (S. Kom. , M. K. Imam Ahmad Ashari, Ed.; edisi Pertama). UHB Press.

Putri, G. M., Pradja, K. A. Di, Azizi, M. B. M., Nurwahid, P., Perdana, A. S., & . M. (2024). Implementasi Stack dan Array pada Pengurutan Lagu dengan Metode Selection Sort. Jurnal Teknologi Dan Sistem Informasi Bisnis, 6(2), 286–296. https://doi.org/10.47233/jteksis.v6i2.1192

Melati, Sari. (2024, February 9). Perbedaan Array 1 Dimensi dan 2 Dimensi: Dari Mhandling Kebohongan Hingga Pemisahan Semesta Cendekia. https://Tambahpinter.Com/Perbedaan-Array-1-Dimensi-Dan-2-Dimensi/.

Setiawan, A. (n.d.). MODUL STRUKTUR DATA SPIRIT TOWAR|D THE FUTURE 2021. Retrieved December 14, 2024, from https://www.agung73.com/wp-content/uploads/2021/02/Modul-Struktur-Data-R1.pdf

Sihombing, J., Ganesha, P., Gatot, J., No, S., & Bandung. (2020). Penerapan Stack dan Queue Pada Array dan Linked List Dalam Java.

Soffya Ranti. (2022). Pengertian Stack dan Queue serta Contoh Penerapannya. Kompas.Com. https://tekno.kompas.com/read/2022/12/01/02150047/pengertian-stack-dan-queue-serta-contoh-penerapannya?page=all#

Triase. (2020). STRUKTUR DATA. http://repository.uinsu.ac.id/9717/2/Diktat%20Struktur%20Data.pdf

Trivusi. (2022). Struktur Data Stack: Pengertian, Karakteristik, dan Kegunaannya. Trivusi.Web.Id.




DOI: https://doi.org/10.31932/jutech.v5i2.4263

Article Metrics

Abstract view : 1581 times
PDF - 1939 times

Refbacks

  • There are currently no refbacks.


Copyright (c) 2024 JUTECH : Journal Education and Technology

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

Creative Commons License
JUTECH: Journal Education and Technology is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.