GithubHelp home page GithubHelp logo

duongtruongbinh / cryptarithmetic-problem Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 65 KB

Cryptarithmetic Problem Solving using CSP

Python 100.00%
artificial-intelligence constraint-satisfaction-problem cryptarithmetic csp-solver

cryptarithmetic-problem's Introduction

Cryptarithmetic Problem Solving using CSP

This repository is dedicated to solving cryptarithmetic problems in the realm of Artificial Intelligence, utilizing the Constraint Satisfaction Problem (CSP) methodology. The repository offers solutions to cryptarithmetic puzzles across four distinct levels of increasing complexity, serving to challenge and enhance the problem-solving capabilities of the system.

Levels of Complexity

Level 1: Basic Addition and Subtraction Equations

In this introductory level, the repository addresses elementary addition and subtraction equations involving two operands. The primary objective is to identify variable values that satisfy the provided equation.

Level 2: Equations with Multiple Operands and Single Operator (+/-)

Progressing to a higher level, Level 2 involves equations containing multiple operands combined through addition and subtraction operators. The repository's focus is on deducing values for the variables within equations restricted to addition and subtraction.

Example Problem: SO + MANY + MORE + MEN + SEEM + TO + SAY + THAT + THEY + MAY + SOON + TRY + TO + STAY + AT + HOME + SO + AS + TO + SEE + OR + HEAR + THE + SAME + ONE + MAN + TRY + TO + MEET + THE + TEAM + ON + THE + MOON + AS + HE + HAS + AT + THE + OTHER + TEN = TESTS

The solution to this problem would be TRANHYSMOE = 9876543210.

Level 3: Equations with Multiple Operands and Operators (+/-) with Parentheses

This level introduces equations featuring multiple operands and a mix of addition and subtraction operations. Parentheses are employed to dictate the order of operations. The objective is to ascertain values for the variables that fulfill the equation.

Example Problem: SEND + (MORE + MONEY) - OR + DIE = NUOYI

Potential solutions to this type of problem could be SENDMORYIU = 1369547082, 1658432970, and so on.

Level 4: Multiplication Equations with Two Operands and One Operator (*)

Level 4 amplifies the complexity by incorporating multiplication operations alongside addition and subtraction. The equations at this level consist of two operands and a single multiplication operator. The repository endeavors to identify appropriate variable values to render the equation valid.

cryptarithmetic-problem's People

Contributors

duongtruongbinh avatar jokievn avatar ntthanh0504 avatar

Stargazers

 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.