Skip to content
All work
Machine Learning

SEND + MORE = MONEY, solved by search, with the frontier on screen.

Notebook (inside a zip in the repository) with recorded solutions; the demo runs the searches step by step.

PythonA*DFSBFSTypeScript (demo)
Cryptarithmetic demo: column-wise search assigning digits to SEND + MORE = MONEY

Overview

An AI-course assignment that treats a cryptarithmetic puzzle as a search problem over letter-to-digit assignments, comparing A*, depth-first backtracking, and breadth-first search.

Interactive demo

Breadth-first, depth-first backtracking, and a column-wise constraint search, each counting nodes expanded. Leading zeros are rejected, which the original DFS did not enforce.

Recorded results

A* solution
9567 + 1085 = 10652
SEND + MORE = MONEY
Source: i211697_Laibakhawar_N.ipynb, cell 1