GithubHelp home page GithubHelp logo

search-problem-ladders's Introduction

Search-Problem-Ladders

Introduction

Ladders is a word game where a player tries to get from one word (the “start word”) to another (the “goal word”) in as few steps as possible. In each step, the player must either add one letter to the word from the previous step, or take away one letter, and then rearrange the letters to make a new word. Example: croissant to baritone croissant ( - C ) arsonist ( - S ) aroints ( + E ) notaries ( + B ) baritones ( - S ) baritone This can be modeled as a search problem, where each node represents a word and the children (actions) of this node are the words that can follow in the next step

Instructions

Execute the file ladders.jar which takes the two words as arguments like this:

java -jar ladders.jar startword goalword

Output Files

  1. output 1.txt – the answer to croissant – baritone
  2. output 2.txt – the answer to crumpet – treacle
  3. output 3.txt – the answer to apple – pear
  4. output 4.txt – the answer to lead – gold

Sample Output

croissant arsonist aroints notaries baritones baritone

search-problem-ladders's People

Contributors

daniyalde avatar daniyalelasticbrains 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.