0% found this document useful (0 votes)
52 views12 pages

Jurnal Skripsi (Azri)

This study presents the development of an online legal dictionary application that utilizes the Sequential Search algorithm for efficient retrieval of legal terms. The application is designed to assist users, particularly students and legal practitioners, in quickly finding and understanding legal terms through a user-friendly interface. The research demonstrates that while the Sequential Search algorithm may not be the fastest for large datasets, it is effective for basic search tasks within the context of this application.

Uploaded by

Dealita Daulay
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views12 pages

Jurnal Skripsi (Azri)

This study presents the development of an online legal dictionary application that utilizes the Sequential Search algorithm for efficient retrieval of legal terms. The application is designed to assist users, particularly students and legal practitioners, in quickly finding and understanding legal terms through a user-friendly interface. The research demonstrates that while the Sequential Search algorithm may not be the fastest for large datasets, it is effective for basic search tasks within the context of this application.

Uploaded by

Dealita Daulay
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Journal of Informatics, Computer Science, Data Science And Arificial Intelligence

Volume 1 No. 1 December 2023, ISSN : 3031-9145

THE IMPLEMENTATION OF THE SEQUENTIAL SEARCH


ALGORITHM IN AN ONLINE LEGAL DICTIONARY
APPLICATION
Muhammad Azri Fajar Jisi 1, Mhd. Zulfansyuri Siambaton 2, Tasliyah
Haramaini 3
1
Universitas Islam Sumatera Utara, jisifajar@gmail.com.
21
Universitas Islam Sumatera Utara, zulfansyuri@ft.uisu.ac.id. 3Universitas Islam Sumatera Utara,
tasliyah@ft.uisu.ac.id.

ARTICLE INFO ABSTRACT

ARTICLE HISTORY: The rapid advancement of information technology has


Received : accelerated the digitalization of various sectors, including the
Revised : legal field. One of the efforts to improve access to legal
Accepted : information is by providing an online legal dictionary
application. This study aims to develop an online legal
Keywords: dictionary application that implements the Sequential Search
React Native, Sequential algorithm for searching legal terms. The Sequential Search
Search, Aplikasi Mobile, algorithm is chosen due to its simplicity of implementation and
its effectiveness in handling small to medium-scale datasets.
Javascript.
The research methodology includes system requirements
analysis, application design, implementation of the search
algorithm, and application testing. The result of this study is an
online legal dictionary application that assists users—
particularly students and legal practitioners—in quickly and
easily finding and understanding legal terms. It is expected that
this application will enable users to access legal information
more efficiently and digitally.

INTRODUCTION
The development of information technology has become a crucial aspect in
supporting the efficiency and effectiveness of data management across various
sectors, including the legal field. In the digital era, websites serve as the primary
medium for organizations to disseminate information (Assegaf & Farhan, 2023). The
utilization of information technology in handling legal cases can also accelerate the
process of legal information retrieval. Therefore, the design of an online legal
2 Article title 6 words….(Second author's name 1, Second author's name 2)

dictionary application aims to simplify the search for articles and laws through an
innovative and user-friendly interface (Tristianto & Didik, 2024).
This study implements the Sequential Search algorithm, a method of sequentially
searching data within an array, which is suitable for unsorted datasets (Sitorus,
2015). The search process is conducted by comparing the target data with each
element one by one until a match is found (Sonita, 2018).
The title of this study is “Implementation of the Sequential Search Algorithm in the
Online Legal Dictionary Application,” with the main research questions being: how
is the algorithm applied within the application, and how does it work to accurately
retrieve data? The scope of the study includes the development of a mobile
application based on JavaScript, the use of legal sources from the Indonesian Penal
Code (KUHP), Civil Code (KUHPerdata), and the Electronic Information and
Transactions Law (ITE Law), as well as the implementation of the Sequential Search
algorithm as the primary search method.
The objective of this research is to implement and understand how the Sequential
Search algorithm operates in searching for legal terms to ensure fast and accurate
retrieval. The expected benefits include facilitating users in searching and
downloading legal documents, as well as expanding knowledge in the field of law
through the developed application.
RESEARCH METHODS
In the development of the Online Legal Dictionary application, legal term data is
stored using an array of objects within the JavaScript programming language. This
approach was chosen due to its simplicity, flexibility, and compatibility with client-
side web technologies. Each object in the array represents a legal term entry and is
structured to contain three key attributes:
term – This attribute holds the name or title of the legal term. It serves as the primary
keyword that will be searched using the implemented search algorithm,
definition – This field provides a brief explanation or definition of the legal term,
enabling users to quickly understand its meaning without needing to access external
resources,
pdf – This attribute contains a hyperlink or file path that directs the user to a PDF
document containing the full legal reference or related legal text,s
The structured representation of legal terms in this format enables the efficient
retrieval and display of relevant information in the user interface. Furthermore, it
facilitates the application of the Sequential Search algorithm by allowing iteration
through the array elements in a linear fashion.
Journal of Informatics, Computer Science, Data Science And Arificial Intelligence,
Volume 1 No. 1 December 2023, ISSN : xxxx-xxxx

The application utilizes the Sequential Search algorithm to search for legal terms
based on user input. This algorithm operates by sequentially examining each element
within the array until a match is found. The implementation of this algorithm can be
observed in the search() function.

In addition to the search functionality, the application also provides a feature to sort
legal terms alphabetically using the "Sort A-Z" and "Sort Z-A" buttons. The sorting
process is implemented using the .sort() function with the localeCompare()
parameter.

The search process in the Online Legal Dictionary application is executed directly on
the client side using the JavaScript programming language. Legal term data is stored
locally in the form of an object array, without the use of an external database or
backend server. To perform the search, the application implements the Sequential
Search (linear search) algorithm.
The following are the steps involved in the search process within the application:
4 Article title 6 words….(Second author's name 1, Second author's name 2)

Keyword Input: The user enters a legal term to search for via a text input field. For
example: "pidana".
Search Function Execution: When the user clicks the "Search" button, the search()
function is triggered.
Input Normalization: The input value is converted to lowercase to ensure the search
is case-insensitive:

Sequential Search Algorithm Implementation: The search() function iterates


through each element in the dictionary array and checks whether the entered
keyword is contained in the term attribute:

Sorting the Results (Optional): Users can choose to sort the search results
alphabetically (A-Z or Z-A). This is accomplished using the sort() function based on
the term value:

Displaying the Search Results: The filtered results are displayed in the HTML
interface, which includes:
The name of the legal term,
A brief definition,
A download link to the associated PDF,
A preview of the PDF document using an iframe (via Google Docs Viewer).
If no matching result is found, a message is displayed: "Term not found.".
The developed application is an online legal dictionary that enables users to search
for definitions or explanations of legal terms. The application utilizes the Sequential
Search algorithm to identify keyword matches within the available list of legal terms.
Journal of Informatics, Computer Science, Data Science And Arificial Intelligence,
Volume 1 No. 1 December 2023, ISSN : xxxx-xxxx

In the implementation, the search process begins when the user inputs a keyword.
The system initializes the index to zero and then checks whether the index is within
the bounds of the dataset. If it is, the algorithm examines whether the legal term at
the current index contains the entered keyword. If a match is found, the result is
displayed and the process is terminated. If no match is found, the index is
incremented and the process continues to the next element. This loop repeats until
either a match is found or the end of the dataset is reached. If the search reaches the
end of the dataset without finding a match, the application displays a message
indicating that the term was not found. This linear and systematic approach allows
for simple and effective search functionality, particularly suited to small or
moderately sized datasets. The flowchart below illustrates the logical sequence of the
program's operation :

RESULTS AND DISCUSSION


6 Article title 6 words….(Second author's name 1, Second author's name 2)

The splash screen is the initial display that appears when the application is first
launched. It typically features the application's logo, name, or other related
information, and serves the purpose of allowing the system to load necessary initial
data and prepare the user interface. The duration of this screen is brief, generally
lasting only a few seconds before transitioning to the main screen. In this application,
the splash screen has been designed with a clean and elegant concept. It displays the
word "LAW", which means "Hukum" in Indonesian, and includes an image of a
gavel, symbolizing justice and legal authority.
The home screen serves as the starting point of the application. It provides a
description of the application's purpose, which is to help users search for legal terms
using the Sequential Search algorithm. The interface design of the application is
intentionally kept simple, using soft color tones for a visually pleasant appearance.
The application consists of only two main menus: the home screen and the
dashboard.
The dashboard contains a heading labeled "Dashboard Pencarian" (Search
Dashboard), indicating that this page is intended for conducting searches related to
legal terms. A search bar is provided on this screen, allowing users to input the
desired keyword. The search bar contains a placeholder text that reads "Masukkan
istilah hukum…" (Enter legal term…), which guides users to type in the legal term
they wish to find. Next to the search bar, there is a search button labeled "Cari"
(Search), which users can click to initiate the search process.
When a relevant legal term is entered and a match is found in the data, the
application displays the search result on the same screen. The result includes the
legal term name, a brief definition, a download link to the corresponding PDF file,
and an embedded preview of the PDF document using a built-in PDF viewer. An
example is the term "Hukum Perdata" (Civil Law), which is shown with the
description: "This law governs the relationships between individuals within society."
The application also supports a PDF viewing feature that allows users to read the
content of the legal document directly within the interface. The viewer is equipped
with controls such as zoom in, zoom out, and a download option to enhance
usability.
If the entered keyword does not match any existing legal term in the data, the
application displays an error message stating that the term was not found. For
example, entering "ruu tni" results in no matching data, indicating that the keyword
is not available in the current dataset.
Journal of Informatics, Computer Science, Data Science And Arificial Intelligence,
Volume 1 No. 1 December 2023, ISSN : xxxx-xxxx

The system begins when the user launches the application through a web browser.
Once loaded, the application immediately displays the Home page, which serves as
the main user interface.
On the Home page, users are presented with essential information, including a brief
usage guide that explains how to operate the application, particularly how to perform
searches and sort results. A navigation menu is also available, providing three main
options: Home, which returns the user to the main landing page; Dashboard, which
directs the user to the search interface; and About, which provides information about
the application and its developer.
From the Home page, users can choose to navigate to the Dashboard to search for
legal terms or to the About section to view details about the application.
When users access the Dashboard, they are presented with a dedicated search
interface. This interface includes a text input field where users can enter keywords
related to legal terms, such as "UU ITE" or "Hukum Perdata". After entering a
keyword, the user can click the Search button, which triggers a sequence of actions.
First, the system captures the user's input. Then, it executes a search process using
the Sequential Search algorithm on the locally stored legal term database. Once the
search is completed, relevant results matching the keyword are displayed on the same
screen.
The interface also includes a Sort button, which enables users to organize the search
results alphabetically. By clicking the button once, the results are sorted in ascending
order (A–Z). Clicking the button a second time reverses the order to descending (Z–
A), allowing for flexible browsing based on user preference.
After the Search button is activated, the system processes the input keyword by first
normalizing the text to ensure case-insensitive matching. It then compares the
keyword with each term in the dataset using the Sequential Search algorithm and
filters the results accordingly. If the Sort function is used, the filtered results are
arranged alphabetically based on the selected order.
The search results are displayed in a user-friendly format. Each result includes a brief
definition of the legal term to help users understand its meaning. A built-in PDF
viewer is also integrated into the interface, allowing users to view related legal
documents directly in the browser through the Google Docs Viewer. Additionally, a
PDF download button is provided, enabling users to download the document for
offline use.
If the user selects the About menu from the navigation options, the application
displays information such as a description of its features, the search method applied
8 Article title 6 words….(Second author's name 1, Second author's name 2)

(Sequential Search), and the identity of the developer along with the year the
application was created. The program's flowchart is presented below.

CONCLUSION
The research concludes that the Sequential Search algorithm can be effectively
applied to the Online Legal Dictionary application. This algorithm performs data
searches by sequentially scanning each item from the beginning to the end of the
legal term list. Within the application, users are able to easily find definitions or
explanations of legal terms relevant to their needs through a simple and accessible
interface.
The implementation of this algorithm offers ease and adequate speed in retrieving
data. Although the Sequential Search algorithm is not as fast as other search
algorithms, such as Binary Search—especially when processing large datasets—it is
still sufficiently optimal for basic search tasks and applications involving static data.
Therefore, this algorithm is suitable for lightweight and straightforward legal term
search needs within the context of this application.

REFERENCES
Journal of Informatics, Computer Science, Data Science And Arificial Intelligence,
Volume 1 No. 1 December 2023, ISSN : xxxx-xxxx

Agustinus Zalukhu, Swingly Purba, Dedi Darma. (2023). Perangkat Lunak Aplikasi

Pembelajaran Flowchart. Jurnal Teknologi Informasi dan Industri, vol. 4,

no. 1, September 2023.

Assegaf, Farhan. (2023). Penerapan Algoritma Sequential Search Pada Website

Yayasan Nurul Iman Perum Taman Singaperbangsa Karawang. JATI (Jurnal

Mahasiswa Teknik Informatika), vol. 7, no. 5, 2023, hlm. 3555–64.

ejournal.itn.ac.id, https://doi.org/10.36040/jati.v7i5.7722.

Béjoint, H. (2010). The Lexicography of English: From Origins to Present. Oxford

University Press.

Boyer, R. S., & Moore, J. S. (1977). A fast string searching algorithm.

Communications of the ACM, 20(10), 762–772.

https://doi.org/10.1145/359842.359859

Cormen, T. H., Leiserson, C. E., Rivest, R. L., & Stein, C. (2009). Introduction to

algorithms (3rd ed.). MIT Press.

DHM, Meuwissen. (2007). Meuwissen tentang Pengembangan Hukum, Ilmu

Hukum, Teori Hukum dan Filsafat Hukum. (Bernard Arief Sidharta,

Tran.)Bandung: Refika Aditama.

Dziemianko, A. (2010). Paper or Electronic? The Role of Dictionary Form in

Language Reception, Production and the Retention of Meaning and

Collocations. International Journal of Lexicography, 23(3), 257–273.

https://doi.org/10.1093/ijl/ecp040

Efraim & Outland (2018). Electronic Commerce 2018: A Managerial and Social
10 Article title 6 words….(Second author's name 1, Second author's name 2)

Networks Perspective. 10.1007/978-3-319-58715-8.

Eisenman, B. 2016. Learning React Native. OReilly Media. California, United

States.

Firmansyah, Ricky, (2017). Web Klarifikasi Berita untuk Meminimalisir Penyebaran

Berita Hoax, Jurnal Informatika, Vol. 4, No. 2.

Fitriani, Yuni, dan Roida Pakpahan. (2020). Analisa Penyalahgunaan Media Sosial

untuk Penyebaran Cybercrime di Dunia Maya atau Cyberspace, Jurnal

Humaniora, Vol. 20, No. 1.

Forouzan, B. A. (2007). Data Structures: A Pseudocode Approach with C. Cengage

Learning.

Hamzah, A. (2017). Hukum pidana Indonesia. Jakarta: Sinar Grafika.

Hardjono, Dhewiberta, 2006. Menguasai Pemrograman Web dengan PHP 5.

Semarang : Wahana Komputer,

Hartmann, R. R. K. (2001). Teaching and Researching Lexicography. Pearson

Education.

Hazairin. (1982). Demokrasi Pancasila. Jakarta: Bina Aksara.

Jimly Asshiddiqie. (2005). Hak Asasi Manusia dalam Perspektif Konstitusi dan

Perundang-undangan di Indonesia. Jakarta: Rajawali Pers.

Junaedi, Novan, Hidayat, F. Mukti, Rizqi, Muhammad, & Agung, I.Wiseto P. (n.d.).

Membangun Startup ARSpira sebuah Platform E-Counseling Berbasis

Website untuk Pelajar SMA. Jurnal Ilmu Komputer Dan Bisnis, 12(2a), 48–

58.

Knuth, D. E. (1998). The Art of Computer Programming, Volume 3: Sorting and


Journal of Informatics, Computer Science, Data Science And Arificial Intelligence,
Volume 1 No. 1 December 2023, ISSN : xxxx-xxxx

Searching. Addison-Wesley.

Lew, R. (2011). Online Dictionaries of English. International Journal of

Lexicography, 24(3), 279–320. https://doi.org/10.1093/ijl/ecq039

Lipschutz, S., & Gills, J. (2007). Schaum's Outline of Data Structures with Java.

McGraw-Hill Education.

Lubis, Maria S. (2010). Hak Asasi Manusia: Konsep dan Implementasi di Indonesia.

Jakarta: Prenadamedia Group.

Maghfira, Salma. (2022). Evaluasi dan Desain Antarmuka Dashboard Website

Posyandu PerumTAS 4 Regency Menggunakan Metode Pureshare untuk

Meningkatkan Kemudahan Layanan Posyandu. Universitas Dinamika.

Mobile Marketing Association. (2015).

Moeljatno. (2002). Asas-Asas Hukum Pidana (Cet. ke-10). Jakarta: Rineka Cipta.

Muhammad Solikhan, (2022). HTML, CSS Dan Javascript. Penerbit Yayasan Prima

Agus Teknik, vol.8, no.1, Sept. 2022, pp. 1343

https://penerbit.stekom.ac.id/index.php/yayasanpat/article/view/371.

Nesi, H. (2000). The Use and Abuse of EFL Dictionaries. ELT Journal, 54(1), 25–34.

https://doi.org/10.1093/elt/54.1.25

Nurrohman Syarif. “Posisi Hukum Islam dalam Sistem Hukum Nasional.” Jurnal Al-

Qanun, Vol. 21, No. 1, 2018. Fakultas Syariah dan Hukum, UIN Sunan

Gunung Djati Bandung.

Nurul Hafid, Syahrul Alfian. (2019). Penerapan Algoritma Pencarian Sequential

Pada Aplikasi Kamus Tiga Bahasa Indonesia-Jawa-Jawa Banten. Jurnal


12 Article title 6 words….(Second author's name 1, Second author's name 2)

Satya Infrormatika, vol, 4 no. 1, Mei 2019.

Pratama, Fadel Oki. (2022). LKP: Perancangan Desain UI/UX Sistem Informasi

Layanan Konsultasi Psikologi Online pada PT. Disty Teknologi Indonesia.

Universitas Dinamika.

Sedgewick, R., & Wayne, K. (2011). Algorithms (4th ed.). Addison-Wesley.

Sitorus, Lamhot. (2015). Algoritma dan Pemrograman. Yogyakarta: Andi.

Soekanto, S. (2010) Pokok-Pokok Sosiologi Hukum. Jakarta: Rajawali Pers.

Sonita, A., Sari, M. (2018). Implementasi Algoritma Sequential Searching Untuk

Pencarian Nomor Surat Pada Sistem Arsip Elektronik.

Tian, L., Du, H., Tang, L., & Xu, Y. (2013). The discussion of cross-platform

mobile application based on Phonegap. In Proceedings of the IEEE

International Conference on Software Engineering and Service Sciences,

ICSESS (pp. 652-655). https://doi.org/10.1109/ICSESS.2013.6615 391.

Tristianto, Didik (2014). Aplikasi Layanan Bantuan Hukum Berbasis Mobile

Menggunakan Metode Design Thinking. Jurnal Sistem Cerdas dan Rekayasa

(JSCR), E-ISSN:2656-7504, vol. 6, no. 1, April 2024, hlm. J2-12.

ojs.widyakartika.ac.id, https://doi.org/10.61293/jscr.v6i1.656.

Weiss, M. A. (2013). Data structures and algorithm analysis in C (4th ed.). Pearson.

You might also like