Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fatihbaltaci/wordladder-graphtheory

Shortest path between two words in a "word ladder" using Breath First Search with Java programming language.
https://github.com/fatihbaltaci/wordladder-graphtheory

Last synced: 10 days ago
JSON representation

Shortest path between two words in a "word ladder" using Breath First Search with Java programming language.

Awesome Lists containing this project

README

        

# WordLadder-GraphTheory
Shortest path between two words in a "word ladder" using Breath First Search with Java programming language.

Given two words, which one is a start word and the other is an end word, and a dictionary, in a word ladder you have to change one word into another by shifting only one character at a time. In addition, the new word which is shifted must be in the dictionary. For example, a word ladder between
"stop" and "fast" is:

stop - soop - loop - loot - lost - last - fast

Dictionary File is look like:

abbe

abed

abet

able

ably

abut

aced

aces

ache

achy

...

Input File is look like:

rose rage

cook pour

Running the program

```
javac Main.java
java Main
```