Speed Analysis of Binary Search and Interpolation Search for Searching Identification Numbers on National Identity Cards
Asian Journal of Research in Computer Science · pp. 34–41 · Published 12 May 2023
10.9734/ajrcos/2023/v15i4328Abstract
Aims: The purpose of the work is to make comparisons and find the best search algorithm between binary search and interpolation search algorithms for searching identity number on Indonesian identity cards. Study Design: This study was designed by implementing binary and interpolation algorithms into C language, with a dataset of 5000. Place and Duration of Study: Department of Informatic Universitas Multimedia Nusantara, between November 2022 until March 2023. Methodology: Binary algorithms and interpolation search will be tested by searching for identity number on identity card data, totaling 5000 data. To measure the level of speed and effectiveness of the two algorithms, this will be done by trying to search for data in various amounts, namely 1000, 2000 and 5000 data, with the data sought between the two algorithms having the same value. Testing is carried out by implementing the two algorithms into C language to get the number of loops and execution time, and testing of the algorithms on each sample dataset is carried out five times to get the average value of the test results. Results: The results of the tests that have been carried out between the binary search and interpolation search algorithms from the existing dataset, found that the number of loops in the interpolation loop is 36.57% better than the binary search algorithm, while for execution time, binary search has a faster execution speed of 12.43% than interpolation search. Conclusion: It can be concluded that if the dataset is large enough, such as identity card data on Indonesian citizens, and if the computer specifications are adequate, binary search, which has a faster execution time, should be used; however, if the computer specifications are inadequate, interpolation search, which has a smaller number of loop processes, should be used.
Cited by 1
Ying Shi, Guoyue Liu, Xiaohong Hao · 2024 IEEE 2nd International Conference on Electrical, Automation and Computer Engineering (ICEACE) · 2024
Article metrics
Real usage data collected on this platform.
0
Page views
0
PDF downloads
0
Outbound clicks
1
Citations
Views by country
Approximate, from request IP at view time — not citizenship or institution. Countries with fewer than 5 views are grouped as "Other".
No views recorded yet.
Traffic sources
Referring site, by host.
No traffic recorded yet.
Views and downloads exclude known bots/crawlers. Citations combines this platform's own DOI-resolved index with each external source's own reported total — see Cited by above for individually listed citing works. Last refreshed 0 seconds ago.