Skip to content

This code provides a solution for cryptarithmetic puzzles using two different approaches: DFS and A Star Search Algorithm. Cryptarithm puzzles are mathematical puzzles where the digits are replaced by letters of the alphabet, and each letter represents a unique digit.

Notifications You must be signed in to change notification settings

areeba0/Cryptarithm-Puzzle-Solver-Using-DFS-and-A-star-Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Cryptarithm-Puzzle-Solver-Using-DFS-and-A-star-Algorithm

Overview

This jupyter notebook provides a solution for cryptarithmetic puzzles using two different approaches: Depth-First Search (DFS) and A* Search Algorithm. Cryptarithm puzzles are mathematical puzzles where the digits are replaced by letters of the alphabet, and each letter represents a unique digit. The objective is to find the digit corresponding to each letter to satisfy the given arithmetic equation.

Features

Cryptarithmetic Puzzle Solver using DFS Algorithm:

Provides a method to solve puzzles by exploring all possible mappings of letters to digits in a depth-first manner.

Cryptarithmetic Puzzle Solver using A Algorithm*:

Utilizes a heuristic-driven approach to efficiently explore possible mappings and find a solution.

Evaluation and Printing:

Includes functionality to evaluate and print the solution in a human-readable format.

Dependencies

  • Python
  • jupyter notebook
  • heapq
  • itertools

About

This code provides a solution for cryptarithmetic puzzles using two different approaches: DFS and A Star Search Algorithm. Cryptarithm puzzles are mathematical puzzles where the digits are replaced by letters of the alphabet, and each letter represents a unique digit.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published