Thursday, 9 April 2026

Thresholding in Image Processing

Thresholding in image processing is a segmentation technique used to separate objects from the background by comparing each pixel’s intensity to a threshold value.

If a pixel value is above or below that threshold, it is assigned to a class.

For a simple binary threshold:

g(x,y)={1,f(x,y)T0,f(x,y)<T

Where:

  • f(x,y) = original pixel value
  • g(x,y) = output pixel value
  • T = threshold

Example:

  • grayscale pixel = 180, threshold = 128 → output = white
  • grayscale pixel = 70, threshold = 128 → output = black

Common types:

  • Global thresholding: one threshold for the whole image
  • Adaptive thresholding: threshold changes by local region
  • Otsu thresholding: automatically finds an optimal threshold

It is commonly used for:

  • object detection
  • document binarization
  • medical image segmentation
  • shape extraction

Wednesday, 8 April 2026

Tutorial JFLAP7.1

Apa itu JFLAP7.1?

JFLAP adalah perangkat lunak pembelajaran untuk memodelkan, menguji, dan mengonversi berbagai konsep bahasa formal. Dari menu tutorial resminya, cakupan utamanya meliputi Finite Automata, Pushdown Automata, Turing Machine, Grammar, Regular Expressions, serta fitur seperti Convert to DFA, Minimize DFA, Convert CFG to PDA, CYK Parser, dan lain-lain.

2. Cara instalasi JFLAP 7.1

Di halaman perangkat lunak resmi, file utama yang dibutuhkan untuk menjalankan program adalah JFLAP7.1.jar. Situs resmi juga memberi catatan bahwa bila sistem operasi mengunduhnya sebagai .zip, file itu perlu diubah namanya kembali menjadi .jar. Pada Windows dan macOS, JFLAP bisa dijalankan dengan double click pada file .jar, sedangkan pada Linux/Unix dapat dijalankan dengan perintah java -jar JFLAP.jar.

Langkah instalasi yang disarankan

  1. Pastikan Java terpasang. Untuk JFLAP 7.1, rujukan resmi menyebut penggunaan Java 8.0.
  2. Unduh JFLAP7.1.jar dari halaman software resmi.
  3. Jika file berubah menjadi .zip, ubah lagi menjadi .jar.
  4. Jalankan:
  • Windows: double click JFLAP.jar
  • macOS: double click JFLAP.jar
  • Linux: java -jar JFLAP.jar

Setelah berhasil dibuka, JFLAP akan menampilkan daftar struktur yang bisa dibuat, misalnya Finite Automaton, Pushdown Automaton, Turing Machine, Grammar, dan Regular Expression.

3. Mengenal antarmuka dasar JFLAP

Pada editor Finite Automaton, toolbar utama berisi empat alat penting: Attribute Editor, State Creator, Transition Creator, dan Deletor. Pola kerja editor untuk FA ini juga menjadi dasar bagi editor automata lain di JFLAP.

Fungsi keempat alat itu:

  1. Attribute Editor: mengatur initial state dan final state
  2. State Creator: membuat state baru
  3. Transition Creator: membuat transisi
  4. Deletor: menghapus state atau transisi.

Untuk menjadikan sebuah state sebagai initial, aktifkan Attribute Editor, lalu klik kanan pada state dan centang Initial. Untuk menjadikannya final, lakukan hal yang sama dan centang Final. State final akan digambar dengan lingkar ganda.



Wednesday, 25 March 2026

Decision Support Systems (DSS): Enhancing Better Decisions in the Digital Era

In today’s fast-changing world, individuals and organizations are constantly required to make decisions quickly and accurately. Whether in business, healthcare, education, agriculture, or government, decision-making has become more complex due to the large amount of data available. This is where Decision Support Systems (DSS) play an important role.

A Decision Support System (DSS) is a computer-based information system designed to support decision-makers in solving semi-structured or unstructured problems. Rather than replacing human judgment, DSS helps users analyze information, compare alternatives, and choose the most appropriate course of action.

What is a Decision Support System?

A Decision Support System is an interactive system that collects, processes, and presents data in a way that assists decision-making. It combines data, analytical models, and user-friendly software to help managers, professionals, or other users make better decisions.

DSS is especially useful when decisions involve uncertainty, multiple criteria, or a large number of possible alternatives. For example, a company may use DSS to select the best supplier, a hospital may use it to determine treatment priorities, or a farmer may use it to choose the most suitable crops based on land and weather conditions.

Main Components of DSS

A typical Decision Support System consists of three main components:

1. Data Management

This component stores and manages the data needed for decision-making. The data may come from internal databases, external sources, or real-time systems.

2. Model Management

This part contains mathematical, statistical, or logical models used to analyze problems and generate possible solutions. Examples include forecasting models, optimization models, and scoring methods.

3. User Interface

The user interface allows decision-makers to interact with the system easily. A good DSS should present information clearly through tables, dashboards, charts, or reports.

Characteristics of DSS

Decision Support Systems have several important characteristics:

  • They support, not replace, human decision-makers.
  • They are flexible and adaptable to changing conditions.
  • They can handle both qualitative and quantitative data.
  • They assist in semi-structured and unstructured decision problems.
  • They provide alternative solutions for comparison.

These characteristics make DSS highly valuable in environments where decisions must be made carefully and efficiently.

Types of Decision Support Systems

DSS can be classified into several types based on how they support decisions:

1. Data-Driven DSS

Focuses on collecting and analyzing large volumes of data. It is commonly used in business intelligence and reporting systems.

2. Model-Driven DSS

Uses analytical models and simulations to support decisions. This type is useful for forecasting, planning, and optimization.

3. Knowledge-Driven DSS

Provides recommendations based on expert knowledge, rules, or artificial intelligence.

4. Document-Driven DSS

Helps users retrieve and analyze documents, reports, and written information relevant to decision-making.

5. Communication-Driven DSS

Supports group decision-making by enabling collaboration, discussion, and information sharing among team members.

Benefits of DSS

Implementing a Decision Support System offers many advantages, such as:

  • Improving the quality of decisions
  • Saving time in analyzing alternatives
  • Reducing human error
  • Supporting more objective and consistent decisions
  • Helping organizations respond quickly to changes
  • Increasing productivity and efficiency

By providing structured analysis, DSS allows decision-makers to focus on strategy rather than spending too much time processing raw data manually.

Applications of DSS in Real Life

Decision Support Systems are widely used in many fields:

Business

Companies use DSS for budgeting, market analysis, supplier selection, inventory control, and customer relationship management.

Healthcare

Hospitals and clinics use DSS to support diagnosis, patient treatment planning, and medical resource allocation.

Education

Educational institutions use DSS for student performance evaluation, scholarship selection, and academic planning.

Agriculture

Farmers and agricultural agencies use DSS to determine planting schedules, fertilizer recommendations, pest control strategies, and crop selection.

Government

Governments use DSS for policy planning, disaster management, public service improvement, and resource distribution.

Challenges in Using DSS

Although DSS offers many benefits, there are also challenges in its implementation. These include:

  • High development and maintenance costs
  • Dependence on accurate and updated data
  • Need for user training
  • Resistance to adopting new technology
  • Difficulty in selecting the most suitable model for specific problems

Therefore, successful DSS implementation requires not only technology but also good planning, user involvement, and proper management support.

The Future of DSS

As technology continues to evolve, Decision Support Systems are becoming more intelligent and powerful. The integration of Artificial Intelligence (AI), Machine Learning, Big Data, and Cloud Computing has significantly expanded the capabilities of DSS.

Modern DSS can now provide predictive insights, real-time analytics, and personalized recommendations. In the future, DSS will likely become even more essential for organizations seeking to remain competitive and make informed decisions in complex environments.

Conclusion

Decision Support Systems are valuable tools that help individuals and organizations make better, faster, and more informed decisions. By combining data, models, and user interaction, DSS transforms raw information into useful knowledge for solving real-world problems.

In an era where data is growing rapidly and decision-making is becoming more challenging, DSS serves as a bridge between information and action. For this reason, understanding and implementing DSS is increasingly important across many sectors.

Monday, 1 December 2025

Thursday, 19 June 2025

Contoh Percabangan Menghitung Grade Nilai dengan Prolog

hitung:-

    write("UAS: "),read(Uas),

    write("UTS: "),read(Uts),

    write("Tugas: "),read(Tugas),

    write("Presensi: "),read(Presensi),

    Nilai is ((Uas*40)+(Uts*30)+(Tugas*20)+(Presensi*10))/100,

    write(Nilai),nl,

    (   Nilai >= 80,write("Grade A");

            Nilai >= 65,write("Grade B");

        Nilai >= 55,write("Grade C");

        Nilai >= 40,write("Grade D");

        write("Grade E")

        )

    .

Thursday, 24 April 2025

Si Budi

iden(n01,andi).

iden(n02,budi).

iden(n03,ina).

iden(n04,ina).


item(i01,anggur).

item(i02,jeruk).

item(i03,donut).


warna(w01,merah).

warna(w02,hijau).

warna(w03,coklat).

warna(w04,kuning).


rasa(r01,manis).

rasa(r02,masam).


menyukai(n01,i01,w01,r01).

menyukai(n02,i01,w02,r02).

menyukai(n03,i02,w04,r02).

menyukai(n04,i03,w03,r01).


manis1(Nama):-

   iden(No,Nama),rasa(Ra,manis),

   menyukai(No,_,_,Ra). 

Saturday, 22 February 2025

Cybersecurity

Cybersecurity has become a pervasive issue affecting all aspects of our digital lives, from financial institutions to healthcare systems (Prince, 2018). It encompasses technical, organizational, and executive measures to protect electronic information and communication systems from unauthorized access and misuse (Mijwil, 2023). The healthcare sector is particularly vulnerable to cybercrime due to its valuable data and weak defenses, with potential breaches impacting patient safety and trust (Coventry & Branley, 2018). To address these challenges, artificial intelligence, specifically machine learning and deep learning techniques, plays a significant role in predicting and understanding malicious software behavior (Mijwil, 2023). Researchers and practitioners from academia, government, and industry are developing emerging technologies and methodologies to mitigate various cyberthreats (Hsu et al., 2015). As cybersecurity becomes integral to patient safety and overall digital security, a holistic approach involving changes to human behavior, technology, and processes is necessary (Coventry & Branley, 2018).

Reference:

  1. Prince, D. (2018). Cybersecurity: The security and protection challenges of our digital world. Computer51(4), 16-19.
  2. Mijwil, M. M., Salem, I. E., & Ismaeel, M. M. (2023). The significance of machine learning and deep learning techniques in cybersecurity: A comprehensive review. Iraqi Journal For Computer Science and Mathematics4(1), 10.
  3. Coventry, L., & Branley, D. (2018). Cybersecurity in healthcare: A narrative review of trends, threats and ways forward. Maturitas113, 48-52.
  4. Hsu, D. F., Marinucci, D., & Voas, J. M. (2015). Cybersecurity: Toward a Secure and Sustainable Cyber Ecosystem. Computer48(4), 12-14.
  5. Coventry, L., & Branley, D. (2018). Cybersecurity in healthcare: A narrative review of trends, threats and ways forward. Maturitas113, 48-52.