Git Product home page Git Product logo

tucil3_13522157's Introduction

Word Ladder

Project Overview

This Project is Aimed to fulfill the requirement of Tucil 3 of STIIMA which involves in implementing UCS, Greedy Best First Search and A* Algoritm on clearing a word ladder problem.

Implementation

UCS

Algoritma UCS yang kami implementasikan akan melakukan iterasi untuk queue yang dibuat hingga ditemukan solusi yang sesuai. Pada kasus word ladder, UCS yang dibuat sebenarnya tidak ada bedanya dengan BFS hal ini karena perbedaan cost yang dihasilkan akan selalu 1 sehingga node apapun yang dimasukan pasti akan diprocess secara bergilir

Greedy BFS

Algoritma Greedy BFS yang kami implementasikan menggunakan priority Queue sebagai struktur data dasarnya dan menggunakan sebuah string matching dalam pengaplikasian cost-nya. Pada Algoritma ini, type yang di implementasikan adalah Greedy BFS yang tidak dapat melakukan backtrack hal ini menyebabkan node yang di lalui dapat tidak optimal dan tidak selesai.

Astar

Algoritma Astar yang kami implementasikan mirip seperti Greedy BFS. namun, Astar dalam pengimplementasian bobotnya menggunakan penggabungan antara cost dari Greedy BFS dan cost dari UCS. setelah itu Astar akan terus di iterasi hingga didapatkan target atau seluruh node tidak dapat menghasilkan end path

Setup Project

Requirements

  1. Install the Java Development Kit (JDK) of Version 22 or higher

    https://www.oracle.com/java/technologies/downloads/
    
  2. Clone the Repo :

    git clone https://github.com/Loxenary/Tucil3_13522157.git
    

Running

  1. Compile the java in the Root Directory
    javac src/*.java
    
  2. Launch The Program
    java src/Main
    

The project is properly setup

Authors

Muhammad Davis Adhipramana (13522157).

tucil3_13522157's People

Contributors

loxenary avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.