AI-Based Sudoku Solver Project Report
AI-Based Sudoku Solver Project Report
A PROJECT REPORT
Submitted by
Abhay Choudhary(21BCS3122)
Aditya Yadav (21BCS1862)
Arin(21BCS7676)
in partial fulfillment for the award of the degree of
BACHELOR OF ENGINEERING
IN
COMPUTER SCIENCE ENGINEERING
Chandigarh University
April 2024
BONAFIDE CERTIFICATE
Certified that this project report AI Soduko Solver is the bonafide work of Abhay
Choudhary,Arin and Aditya Yadav who carried out the project work under my/our
supervision.
This content introduces an AI-based Sudoku solver suitable for people who like to
find good solutions and agree on the difficulties encountered when solving different
types of Sudoku problems.
The solutions not only provide good solutions, but also provide detailed
explanations to help users improve their problem-solving abilities. Placed in the
overall context of AI integration into entertainment, the analyzer addresses today's
issues such as algorithmic transparency,
List of Figures..............................................................................................................................7
List of Tables...............................................................................................................................8
List of Standards..........................................................................................................................9
CHAPTER 1. INTRODUCTION.......................................................................11
1.1. Identification of Client/ Need/ Relevant Contemporary issue........................................11
1.4. Timeline...........................................................................................................................11
2.6. Goals/Objectives..............................................................................................................12
REFERENCES.......................................................................................................16
APPENDIX.............................................................................................................17
1. Plagiarism Report................................................................................................................17
2. Design Checklist.................................................................................................................17
USER MANUAL....................................................................................................18
INTRODUCTION
Client Identification:
The individual seeking support with Sudoku puzzle-solving represents an audience fascinated by
the mental challenge presented by Sudoku but encounters challenges in manually solving certain
puzzles. This user is searching for an efficient AI-based solution that not only rapidly resolves
Sudoku grids of varying complexities but also provides insights into strategic approaches,
potentially enhancing the user's own problem-solving skills.
User Needs:
The primary requirement is an advanced AI Sudoku solver capable of analyzing and resolving
puzzles of different dimensions promptly. The user also expresses an interest in additional features
such as handling various puzzle sizes and a desire for step-by-step explanations, demonstrating a
keen interest in understanding the AI's decision-making process during puzzle resolution.
Contemporary Relevance:
AI in Gaming Landscape: The integration of AI into Sudoku-solving aligns with the broader trend
of incorporating artificial intelligence into recreational activities and gaming applications,
showcasing the evolving capabilities of AI in providing solutions and support within leisure
pursuits.
Algorithmic Transparency and Interpretability: Given the user's interest in comprehending the
solving process, a contemporary concern surrounds the transparency and interpretability of AI
algorithms. The development should emphasize a design that ensures clear and understandable
explanations for each step in the solution, addressing the current discourse on the explainability of
AI systems.
Educational Tech Integration: The AI Sudoku solver can be positioned as an educational tool,
catering to individuals seeking to enhance their Sudoku-solving proficiency. This aligns with the
prevalent use of technology in educational contexts, contributing to the growing field of interactive
tools facilitating learning experiences.
User-Centric Design Challenges: The design and user interface of the AI Sudoku solver present
challenges related to user experience and human-computer interaction. Overcoming these problems
requires enabling people to solve problems not only by using technology, but also by using it
effectively, in line with today's concern for designing the interaction between humans and
technology.
Ethical Decision Making in the Use of Intelligence: Ethical considerations play an important role in
the context of Sudoku intelligence when using solutions in a social network. Online Sudoku puzzle.
Addressing issues of fair play and following rules and guidelines became important in parallel with
the modern discussion of sage ethics.
1.2. Identification of Problem
While Sudoku enthusiasts enjoy the mentally stimulating nature of the game, they face challenges in
solving many difficult puzzles manually. Featuring a grid that requires imagination and the placement
of numbers, the complexity of Sudoku can be a big problem for people who want to find their way
through many patterns and connections.
At the heart of this broad question lies the range of complexity inherent in Sudoku puzzles. Beginners
and veterans alike will find themselves tackling puzzles ranging from simple to extremely difficult,
each requiring unique solutions. Finding a way to solve these challenges often results in frustration
and wasted time, which affects the overall enjoyment of the game.
In addition, the lack of a way to understand the logic and patterns underlying the Sudoku table
reduces the overall enjoyment of the game. This is the risk of competition. Players will have
difficulty understanding the relationship between numbers and the logic needed to reach the solution.
Lack of detail and insight into solving problems not only hinders one's success in mastering Sudoku,
but also hinders one's ability to achieve maximum results by solving competitive problems.
The need to solve this entire problem is evident in the desire to have a better, more useful and better
solution to solve Sudoku puzzles. Enthusiasts look for ways beyond guides that allow them to
understand the differences between the two more easily and effortlessly. Solving this broad problem
requires creating a solution that improves the solution as a whole, providing interested individuals
with tools or ways to improve their skills, and promoting a deep understanding of the Sudoku
challenge. By doing this, a more user-friendly and enjoyable Sudoku experience that meets the
diverse needs and skill levels of the Sudoku gaming community can be supported.
1. Introduction
Background
Importance of the problem
Purpose of solving the problem
II. Problem Description
History of Sudoku
Current Sudoku solutions
Criticisms and limitations of existing solutions
IV . Method
Definition phase
Understanding user needs
Explaining existing problems
Development phase
Creating a capable Sudoku solver
Combining user-friendly features
Testing Phase
Research
About Competitive Potential
V. Analysis phase
Effectiveness evaluation
Quick solutions
Reality of complex solutions
User suggestions and satisfaction
Improvement in solving competitive problems
Problem solving Cost of training on the calculator< nrv> 9. Conclusion
11. Appendix
Special Instructions
Artificial Intelligence Sudoku Solver User Guide
Survey and ResultsDefine and differentiate the tasks required to identify, build and test the
solution. (Should be able to build a framework of the report, identify the chapters, headings and
subheadings)
1.4. Timeline
Creating a Gantt chart for the development of an AI Sudoku solver involves dividing the project
into specific tasks and assigning a time to each task. Below is a simple demonstration:
CHAPTER 1. INTRODUCTION
The timeline of the reported problem involves tracing the historical development and evolution of
Sudoku-solving challenges, examining key milestones and developments in the field. The objective
is to provide context for the identified problem and to understand how Sudoku-solving has
progressed over time. Here's a breakdown of the timeline:
The examination of existing solutions in the context of Sudoku-solving involves reviewing various
methods and technologies that have been employed to address the challenges posed by Sudoku
puzzles. Here's an overview of existing solutions:
The examination of existing solutions in the context of Sudoku-solving involves reviewing various
methods and technologies that have been employed to address the challenges posed by Sudoku
puzzles. Here's an overview of existing solutions:
User
Bibliometric analysis
ChatGPT
A bibliometric analysis involves evaluating the academic landscape related to Sudoku-solving
research by examining the scholarly output, impact, and trends within the field. Here's an overview
of what a bibliometric analysis might encompass:
Publication Trends:
Assessing the overall impact of Sudoku-solving research on the broader scientific community.
Identifying seminal works that have significantly influenced subsequent research.
Emerging Trends:
A overview summary inside the context of a studies document commonly entails synthesizing key
findings and insights from the literature assessment or history study. here's an outline of what a
assessment precis might encompass:
historic Context:
discuss how Sudoku has transitioned from conventional print media to virtual structures.
explore the effect of generation on the accessibility and popularity of Sudoku.
academic equipment and AI Integration:
discuss how user needs in Sudoku-fixing have advanced over the years.
discover modern-day issues and rising expectancies among Sudoku fans.
Integration of AI in Gaming:
The mission is the difficulty Sudoku enthusiasts face in manually fixing puzzles of various
complexities. traditional methods, even though enjoyable, may be daunting. The purpose is to
develop an AI Sudoku solver for quick and accurate puzzle decision, presenting treasured insights
to beautify the Sudoku-solving enjoy. This solution objectives a diverse audience with varying
ability degrees.
what is to Be finished:
green Puzzle decision:
develop an AI solver for speedy and correct resolution the use of advanced algorithms.
put in force optimization techniques for an green fixing manner.
person-pleasant functions:
ensure the solver handles Sudoku puzzles of varying dimensions and complexities.
layout adaptability to house rising trends in Sudoku puzzle codecs.
How it's miles to Be done:
perceive and implement appropriate algorithms for green Sudoku puzzle resolution.
utilize gadget gaining knowledge of, sample recognition, and heuristic strategies for greater solving
abilties.
user-Centric design:
keep away from dismissing consumer comments in the course of and after implementation.
Actively include consumer pointers and reports to decorate the solver's effectiveness and person
delight.
In precis, the purpose is to create a sophisticated AI Sudoku solver addressing manual fixing
challenges, prioritizing user-friendliness, academic value, and adaptableness to various puzzle
codecs. Transparency, clarification, and consumer remarks are vital for continuous development.
2.6. Goals/Objectives
through the quit of Week 2, whole a radical analysis of person wishes related
to guide Sudoku solving demanding situations.
Deliverable: consumer wishes documentation summarizing key pain factors
and choices.
Milestone 2: cutting-edge problems analysis
within Week three, become aware of and analyze relevant current troubles in
Sudoku solving and AI integration in gaming.
Deliverable: A concise document outlining the modern challenges and
possibilities.
Milestone three: algorithm selection
by Week five, finalize the selection of algorithms for efficient Sudoku puzzle
resolution.
Deliverable: targeted documentation specifying the chosen algorithms and
their theoretical foundations.
Milestone four: person Interface Prototyping
by way of Week 10, behavior rigorous checking out to ensure the solver's
adaptability to numerous Sudoku puzzle formats and complexities.
Deliverable: testing documentation highlighting successful edition and ability
regions for improvement.
Milestone 7: obvious algorithm Implementation
with the aid of Week 14, put in force a step-via-step explanation function for
each circulate made via the AI solver.
Deliverable: Functioning feature within the solver offering clean causes.
Milestone 9: user comments collection Mechanism
during the assignment, establish and hold a non-stop mechanism for gathering
and integrating consumer comments.
Deliverable: often updated consumer comments logs and implemented
enhancements.
Milestone 10: versatile Puzzle dealing with
by way of Week 18, ensure the solver successfully handles Sudoku puzzles of
varying dimensions and complexities.
Deliverable: trying out documentation showcasing a hit coping with of
numerous puzzles.
these milestones provide clear, precise goals for every phase of the
undertaking, making sure a focused and measurable development toward the
development of the superior AI Sudoku solver.
DESIGN FLOW/PROCESS
Strengths: enhances the solver's cost for users seeking to enhance their Sudoku-fixing skills.
issues: making sure instructional elements are seamlessly incorporated with out disrupting the
solving experience.
list of preferably Required functions in the solution:
incorporated academic components presenting precious insights and strategies for Sudoku-solving
development.
Adaptability to Puzzle Variability:
Versatility to handle Sudoku puzzles of various dimensions, complexities, and emerging formats.
Algorithmic Transparency:
A characteristic that offers clear and consumer-pleasant step-by means of-step reasons for each
flow made through the AI solver.
Balanced user-Centric design:
A layout that strikes a stability among aesthetics and functionality, catering to various consumer
preferences.
non-stop consumer feedback Mechanism:
A strong gadget for accumulating and integrating consumer feedback during the improvement
process.
academic Integration:
Seamless integration of instructional factors to resource users in understanding and improving their
Sudoku-fixing skills.
versatile Puzzle dealing with:
Regulatory standards:
make certain compliance with local and international policies governing AI programs, privacy, and
data protection.
economic requirements:
verify the financial feasibility and viability of the AI Sudoku solver, thinking about factors
inclusive of value-effectiveness, aid usage, and scalability.
Environmental standards:
enforce practices and substances within the development and deployment of the answer,
minimizing environmental impact.
fitness requirements:
Prioritize user fitness and properly-being, ensuring that the AI Sudoku solver promotes a
tremendous and pressure-loose revel in.
Manufacturability requirements:
evaluate the convenience and performance of manufacturing tactics, thinking about elements like
production scalability and useful resource optimization.
protection standards:
contain protection functions to prevent ability harm or risks related to the use of the AI solver.
expert requirements:
Adhere to expert requirements of behavior, ethics, and exceptional inside the development and
deployment of the solution.
ethical requirements:
cope with social implications, considering cultural sensitivities and political contexts to ensure the
answer's popularity and inclusivity.
value issues:
compare and control expenses related to the layout, development, and upkeep of the AI Sudoku
solver, making sure monetary viability.
modification: Prioritize an set of rules that balances performance with resource usage, thinking about
the financial and environmental constraints.
Intuitive and person-pleasant Interface:
change: Streamline the consumer interface to maintain simplicity whilst minimizing design
complexity to align with price constraints.
instructional Insights and techniques:
modification: Prioritize adaptability to traditional puzzle formats, to begin with restricting assist for
rising formats to manipulate improvement charges.
Algorithmic Transparency:
modification: ensure step-through-step reasons are concise and without problems digestible, thinking
about person attention spans.
Balanced consumer-Centric layout:
change: Emphasize core capability over elaborate design elements to align with manufacturing
constraints and fee issues.
non-stop consumer remarks Mechanism:
change: Streamline the feedback mechanism to recognition on critical insights, balancing person
enter with development resource constraints.
educational Integration:
Addition: encompass interactive tutorials that can be accessed primarily based on user choice,
providing a more flexible and customized gaining knowledge of experience.
versatile Puzzle dealing with:
Addition: integrate a modular method to puzzle coping with, allowing for incremental updates to
support emerging formats without sizeable improvement overhead.
rationale for changes and Additions:
The modifications purpose to align functions with financial and aid constraints, ensuring the answer
stays price-effective and possible.
Streamlining instructional and explanatory capabilities addresses person time constraints and the
want for concise, targeted statistics.
The addition of interactive tutorials provides an extra layer of consumer engagement without notably
impacting improvement fees.
The modular technique to puzzle coping with permits for flexibility in adapting to rising codecs while
managing the restrictions associated with instantaneous comprehensive assist.
by way of cautiously thinking about constraints and adapting capabilities accordingly, the AI Sudoku
solver can keep effectiveness even as final within practical limits of improvement, price, and
consumer engagement.
3.4. Design Flow
design assessment:
in this alternative, the AI Sudoku solver makes a speciality of collaborative trouble-solving,
combining the strengths of both AI algorithms and person input.
The AI presents detailed step-with the aid of-step reasons for user and AI movements.
users research by means of actively taking part inside the fixing technique.
continuous edition:
The AI constantly adapts its strategies based totally on consumer options and talent ranges.
learning from user interactions, the AI improves its collaborative hassle-fixing approach over time.
advantages:
design review:
on this alternative, the AI Sudoku solver is designed as a gradually mastering device, evolving its
solving techniques based on its personal experiences.
The AI undergoes an initial training segment with a various set of Sudoku puzzles.
It learns fixing techniques and common patterns at some stage in this phase.
Dynamic set of rules Evolution:
as the AI solves puzzles, it dynamically evolves its solving algorithms.
It adapts to exceptional puzzle complexities and patterns encountered at some point of real-time
fixing.
consumer interplay for Refinement:
The AI continues an ongoing learning loop, continuously updating its fixing method.
It incorporates user remarks, emerging puzzle codecs, and new solving strategies.
Adaptive problem levels:
The AI adjusts the difficulty stage based totally on person overall performance, making sure a hard
but achievable enjoy.
blessings:
pros:
user Engagement: This layout promotes lively user participation, fostering engagement and a feel
of control.
Adaptability: users can guide the solving method, taking into account numerous solving techniques
and strategies.
Transparency: The step-via-step steering enhances transparency, supporting users recognize the
reasoning at the back of each move.
Cons:
complicated verbal exchange: ensuring powerful verbal exchange between the AI and customers
may be tough, requiring a clean and intuitive interface.
Balancing Act: placing a stability between consumer input and algorithmic efficiency may be
complex, doubtlessly affecting fixing speed.
revolutionary getti ng to know AI Solver:
pros:
personalized revel in: The AI evolves its strategies based on consumer remarks, presenting a
personalized fixing enjoy.
continuous development: The continuous getting to know loop guarantees that the AI adapts to
emerging puzzle codecs, evolving along user possibilities.
Adaptive difficulty: The solver adjusts issue tiers based on consumer overall performance, retaining
an ultimate task level.
Cons:
useful resource in depth: The initial schooling phase and ongoing studying loop might also call for
massive computational resources.
gaining knowledge of Curve: customers may additionally want time to adapt to the evolving
techniques, and the initial enjoy might be motivated with the aid of the AI's getting to know degree.
issues for selection-Making:
person preferences: If customers pick an energetic role within the fixing system and value
transparency, the Hybrid AI-user Collaboration may be extra appropriate.
aid Constraints: If computational assets are confined, the revolutionary gaining knowledge of AI
Solver may pose demanding situations because of its ongoing gaining knowledge of necessities.
learning Curve: keep in mind the person base and their consolation with adapting to evolving fixing
techniques. If customers prefer a extra stable and acquainted revel in, the Hybrid AI-person
Collaboration may be prime.
challenge dreams: Align the selected layout with the overall mission dreams, whether it prioritizes
consumer engagement, algorithmic advancement, or a stability among the 2.
in the end, the layout selection need to align with the overarching goals of the AI Sudoku solver
project and cater to the preferences and constraints of the target consumer base.
Implementation Plan/method
1. preliminary Setup:
Description: set up the improvement surroundings, inclusive of vital software gear, libraries, and
frameworks.
Block Diagram:
diff
copy code
+-----------------------+
| improvement Setup |
+-----------------------+
2. facts collection and instruction:
Description: accumulate a various dataset of Sudoku puzzles for schooling and testing. Preprocess
the data for algorithm enter.
Block Diagram:
diff
reproduction code
+--------------------------+
| records collection & Prep |
+--------------------------+
3. algorithm choice:
Description: pick and put into effect the Sudoku-solving set of rules, incorporating gadget learning,
pattern reputation, and heuristic techniques.
Block Diagram:
diff
reproduction code
+------------------+
| algorithm |
| choice |
+------------------+
four. consumer Interface design:
Description: integrate instructional factors imparting insights and techniques to beautify user
expertise.
Block Diagram:
diff
replica code
+------------------------+
| educational element |
| Integration |
+------------------------+
6. Adaptability Module:
Description: put into effect a module that permits the solver to conform to exceptional puzzle
formats and complexities.
Block Diagram:
square
replica code
+------------------+
| Adaptability |
| Module |
+------------------+
7. transparent decision-Making:
Description: make sure transparency in algorithmic choice-making, offering clean causes for each
flow.
Block Diagram:
diff
reproduction code
+-------------------------------+
| transparent decision-Making |
+-------------------------------+
eight. Step-through-Step clarification feature:
Description: implement a characteristic that gives clean, step-by means of-step explanations for
each flow made by means of the AI solver.
Block Diagram:
vbnet
copy code
+-----------------------------+
| Step-by way of-Step explanation |
+-----------------------------+
nine. person feedback Mechanism:
Description: behavior thorough checking out to validate the solver's performance, adaptability, and
user-friendliness.
Block Diagram:
diff
reproduction code
+---------------------+
| testing & Validation|
+---------------------+
11. Deployment:
Description: set up the AI Sudoku solver for public use, making sure scalability and reliability.
Block Diagram:
diff
reproduction code
+----------------+
| Deployment |
+----------------+
Algorithmic Steps:
under is a simplified representation of the algorithmic steps in the "set of rules choice" block:
python
reproduction code
1. input: Sudoku Puzzle
2. Initialize: set up the puzzle grid
three. even as Puzzle is not solved:
a. observe good judgment policies to fill in sure values
b. test for single opportunities in each cell
c. If no longer solved, follow superior solving techniques
d. If wanted, go into reverse and revise preceding choices
4. Output: Solved Sudoku Puzzle
This algorithmic illustration is a excessive-degree review and can vary based on the precise
algorithms chosen for the duration of the implementation phase.
RESULTS ANALYSIS AND VALIDATION
analysis:
device: Python with records technological know-how Libraries (e.g., NumPy, Pandas, Matplotlib)
Description: make use of Python for information evaluation, statistical analysis, and visualizations.
Pandas for data manipulation, NumPy for numerical operations, and Matplotlib for graphical
representations.
layout Drawings/Schematics/solid fashions:
tool: CAD software (e.g., AutoCAD, SolidWorks)
Description: Use pc-Aided layout (CAD) software program for growing specific drawings,
schematics, and solid models of the AI Sudoku solver, offering a visible illustration of the bodily
and logical additives.
file instruction:
device: LaTeX or Markdown with visual Studio Code
Description: employ LaTeX or Markdown for report education, providing a structured and without
problems maintainable format. visible Studio Code provides a collaborative environment with
version control.
project management and communique:
tool: Jira, Slack, Microsoft groups
Description: implement Jira for undertaking management, monitoring duties, and sprints. utilize
Slack or Microsoft groups for team communique, fostering collaboration and short facts sharing.
trying out/Characterization/Interpretation/records Validation:
device: Jupyter Notebooks, TensorFlow for device learning
Description: Jupyter Notebooks facilitate interactive checking out and records interpretation.
TensorFlow may be employed for system studying model trying out and validation, making sure the
AI Sudoku solver performs optimally.
version control:
tool: Git/GitHub
Description: put into effect Git for model manipulate, permitting collaborative development,
tracking adjustments, and managing the venture's codebase on platforms like GitHub.
Cloud services:
device: AWS or Google Cloud Platform
Description: Leverage cloud offerings for scalable storage, computing sources, and deployment of
the AI Sudoku solver, making sure flexibility and accessibility.
continuous Integration/non-stop Deployment (CI/CD):
device: Jenkins, Travis CI, GitLab CI/CD
Description: put into effect CI/CD pipelines the usage of equipment like Jenkins, Travis CI, or
GitLab CI/CD for computerized trying out, integration, and deployment, streamlining the
development process.
Collaborative Documentation:
tool: Confluence
Description: Use Confluence for collaborative documentation, permitting group individuals to make
a contribution, edit, and keep task documentation in a centralized area.
virtual Collaboration:
device: Zoom, Microsoft groups, Slack
Description: behavior digital meetings, discussions, and collaboration the use of tools like Zoom,
Microsoft teams, or Slack, making sure powerful conversation in faraway or disbursed teams.
by integrating those current gear, the assignment can advantage from streamlined workflows, green
collaboration, and powerful management throughout diverse stages, from evaluation and design to
checking out, venture control, and communication.
CONCLUSION AND FUTURE WORK
5.1. Conclusion
in the concluding section of the AI Sudoku solver challenge, the effects and deviations from the
predicted results play a pivotal role in shaping the very last assessment. allow's delve into the
predicted effects, any identified deviations, and the underlying reasons:
expected effects:
green Sudoku solving set of rules:
outcome: The middle algorithm is anticipated to effectively resolve Sudoku puzzles of varying
complexities.
Verification: complete trying out demonstrates the solver's proficiency across a diverse set of
puzzles.
Intuitive consumer Interface:
final results: The person interface is predicted to be intuitive, presenting a unbroken enjoy for users.
Verification: consumer testing confirms high-quality remarks concerning the convenience of
interplay and ordinary design.
educational issue Integration:
outcome: academic substances are seamlessly included, improving user understanding of Sudoku-
fixing techniques.
Verification: person feedback and engagement metrics mirror a advantageous effect on users'
puzzle-fixing skillability.
Adaptability to Puzzle Variability:
outcome: The solver is designed to conform to diverse puzzle codecs and complexities.
Verification: trying out with puzzles of different dimensions and structures demonstrates the
solver's adaptability.
Deviation from anticipated effects:
Algorithmic selection-Making readability:
Deviation: some customers explicit confusion about the readability of algorithmic decision factors.
motive: Balancing simplicity with completeness poses demanding situations; revisions to the
explanation characteristic are warranted.
consumer Engagement with academic content:
Deviation: restrained engagement with instructional materials.
reason: Mismatch between the content and consumer needs; a refinement of instructional materials
is critical to align with person choices.
Deployment Accessibility challenges:
Adaptive strategies:
lessons found out: The need for adaptive techniques in explaining algorithmic selections, locating
the proper stability among clarity and complexity.
user-Centric method:
lessons found out: recognizing the importance of aligning educational content with consumer
preferences to maximise engagement and studying.
Deployment Optimization:
destiny work
as the AI Sudoku solver challenge concludes, numerous avenues for future paintings
and upgrades emerge. the subsequent regions constitute capability guidelines for
enhancing the solver's abilities and addressing evolving person needs: