Skip to content

Tugas Kecil 3 IF2211 Strategi Algoritma - Word Ladder Solver using UCS, GBFS, and A*

License

Notifications You must be signed in to change notification settings

NoHaitch/Tucil3_13522091

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Tucil 3 - Stima

Word Ladder Solver

Using UCS, Greedy Best First Search, and A*


Report Bug · Request Feature

MIT License

Made By:

13522091

Raden Francisco Trianto Bratadiningrat


Table of Contents
  1. About The Project
  2. Getting Started
  3. Contributing
  4. License

External Links

(back to top)

About The Project

For Tugas Kecil 3 IF2211 Strategi Algoritma, I was tasked to make a solver for Word Ladder Game. I made 3 algorithm of choice to solve the problem. Uniform Cost Search (UCS), Greedy Best First Search (GBFS) and A* (A star). I used Java Swing to make a simple GUI with input validation to make solver better.

I learned a lot through this project, especially regarding pros and cons of each algorithm. I also learnt many similarities between these algorithms and their differences as well.

(back to top)

Getting Started

Prerequisites

Project dependencies

(back to top)

Installation

  1. Clone the repo
    git clone https://github.com/NoHaitch/Tucil3_13522091
  2. Build java file
    cd src
    javac Main.java -d ../bin
  3. Run the program
    cd ../bin
    java Main

Note:
Use run-bat.bat or run-sh.sh for ease of use

(back to top)

Instruction

Note: Program will use dictionary.txt in the dictionary directory for the English dictionary representation. Dictionary.txt is not a perfect dictionary and may loss some English words.

  1. Use run-bat.bat or run-sh.sh to run and build the program
  2. Input Source Word
  3. Input Target Word
  4. Press one of the three buttons:
    • Uniform Cost Search
    • Greedy Best First Search
    • A*
  5. Result is shown in a new window

(back to top)

Features

1. Input source and target word

2. Use Uniform Cost Search

3. Use Greedy Best First Search

4. Use A* Search

5. Shows time taken

6. Shows amount of node visited

7. Shows memory used (inaccurate)

(back to top)

Contributing

If you want to contribute or further develop the program, please fork this repository using the branch feature.
Pull Request is permited and warmly welcomed

(back to top)

Licensing

The code in this project is licensed under MIT license.

(back to top)


THANK YOU!

About

Tugas Kecil 3 IF2211 Strategi Algoritma - Word Ladder Solver using UCS, GBFS, and A*

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages