KOMPUTIKA - Jurnal Sistem Komputer
Vol 11 No 2 (2022): Komputika: Jurnal Sistem Komputer

Analisis Perbandingan Kinerja Metode Rekursif dan Metode Iteratif dalam Algoritma Linear Search

Erba Lutfina (Unknown)
Nur Inayati (Unknown)
Galuh Wilujeng Saraswati (Unknown)



Article Info

Publish Date
01 Aug 2022

Abstract

The linear search algorithm is one of the most popular data search algorithms. In the process of searching data for a list using a linear search algorithm, it can be applied in an iterative and recursive way. The general view of linear search algorithms is that the iterative methods perform the same as recursive methods. However, some studies contradict this statement which may not apply in all cases. From this analysis, this study focuses on the comparison of recursive and iterative methods on linear search algorithms to find out which algorithm is the most suitable, efficient, and effective. The research was conducted using 3 case studies with data of 1 million, 10 million, and 100 million respectively. The research focuses on the results of memory usage and access time in the data search process using Big-O notation and Python programming language. The results show that the iterative linear search algorithm is more effective and efficient than recursive. Although both methods have the same Big-O complexity, the results of program execution show different results. With the results of an iterative linear search algorithm, the results of the execution time and memory usage are superior, namely, the access time and memory usage are less than the recursive method.

Copyrights © 2022






Journal Info

Abbrev

komputika

Publisher

Subject

Computer Science & IT Control & Systems Engineering Electrical & Electronics Engineering

Description

Jurnal Ilmiah KOMPUTIKA adalah wadah informasi berupa hasil penelitian, studi kepustakaan, gagasan, aplikasi teori dan kajian analisis kritis di bidang kelimuan bidang Sistem ...