Bms Institute of Technology & Management: Department of Computer Science and Engineering
Bms Institute of Technology & Management: Department of Computer Science and Engineering
3RD SEMESTER
2020-21
“Knight's tour”
Submi t ted By
BMSIT&M
DEPARTMENT OF CS&E 2020-2021
KNIGHT’S TOUR PAGE NO - 2 OF 7
INSTITUTE VISION
To emerge as one of the finest technical institutions of higher learning,
to develop engineering professionals who are technically competent,
ethical and environment friendly for betterment of the society.
INSTITUTE MISSION
Accomplish stimulating learning environment through high quality
academic instruction, innovation and industry-institute interface.
DEPARTMENT VISION
To develop technical professionals acquainted with recent trends and
technologies of computer science to serve as valuable resource for the
nation/society.
DEPARTMENT MISSION
Facilitating and exposing the students to various learning opportunities
through dedicated academic teaching, guidance and monitoring.
BMSIT&M
DEPARTMENT OF CS&E
2020-2021
KNIGHT’S TOUR PAGE NO - 3 OF 7
CO # CO DEFINED
Software
engineering
Discrete
mathemati
cal
structures
BMSIT&M
DEPARTMENT OF CS&E
2020-2021
KNIGHT’S TOUR PAGE NO - 4 OF 7
PO2 Problem analysis: Identify, formulate, review research literature, and analyse complex
Engineering problems reaching substantiated conclusions using first principles of
mathematics, Natural sciences and engineering sciences
PO3 Design/development of solutions: Design solutions for complex engineering problems and
design system components or processes that meet the specified needs with appropriate
consideration for the public health and safety, and the cultural, societal, and environmental
considerations.
PO5 Modern tool usage: Create, select, and apply appropriate techniques, resources, and
modern Engineering and IT tools including prediction and modelling to complex
engineering activities with an understanding of the limitations.
PO6 The engineer and society: Apply reasoning informed by the contextual knowledge to
assess societal, health, safety, legal and cultural issues and the consequent
responsibilities relevant to the professional engineering practice.
PO7 Environment and sustainability: Understand the impact of the professional engineering
solutions in societal and environmental contexts, and demonstrate the knowledge of,
and need for Sustainable development
PO8 Ethics: Apply ethical principles and commit to professional ethics and responsibilities and
norms of the engineering practice.
PO9 Individual and team work: Function effectively as an individual, and as a member or leader in
diverse teams, and in multidisciplinary settings
BMSIT&M
DEPARTMENT OF CS&E
2020-2021
KNIGHT’S TOUR PAGE NO - 5 OF 7
PO11 Project management and finance: Demonstrate knowledge and understanding of the
Engineering and management principles and apply these to one’s own work, as a member
and Leader in a team, to manage projects and in multidisciplinary environments.
PO12 Life-long learning: Recognize the need for, and have the preparation and ability to engage
in independent and life-long learning in the broadest context of technological change.
Data
Structures
Software
engineering
Discrete
mathematical
structures
PSO1 Analyze the problem and identify computing requirements appropriate to its solution.
PSO2 Apply design and development principles in the construction of software systems of
varying complexity.
BMSIT&M
DEPARTMENT OF CS&E
2020-2021
KNIGHT’S TOUR PAGE NO - 6 OF 7
Abstract:
1. A Knight Tour problem is an ancient puzzle which remains as a focus of current
researcher, whose goal is to find out how to construct a series of legal moves made by a
knight so that it visits every square of a chessboard exactly once.
2. If the knight ends on a square that is one knight's move from the beginning square (so that
it could tour the board again immediately, following the same path), the tour is closed;
otherwise, it is open.
3. The knight's tour problem is the mathematical problem of finding a knight's tour. The
objective of a Knight Tour algorithm is to find out a solution with construct a closed
moving path by a knight for visiting each square of a chessboard by only once.
4. This new proposed method fulfills any board size of 4n+2 where n>1 with lower
execution time and without the needs of any brute force method and backtracking method.
Introduction:-
1. A Knight Tour problem is an old but interesting issue that still arouse the attention of
researcher nowadays. The criteria of a legal Knight Tour move require each of the square
checker only allow visited by Knight by only once.
2. Knight Tour, in another word, is sharing common situation with Travelling Salesman
problem, where Knight Tour is an un-weighted for each square. Knight Tour problem on a
chessboard of size 8×8 first studied by Euler in year of 1759. Right after, it become a
famous topic in mathematic field with many different solutions.
3. Initially, research has been conducted on a small chessboard, as a result, many skills has
been proposed such as brute force algorithm, divide-and-conquer algorithm and neural
network solution.
4. The advantages of these methods are quick and the easy to implement. Over the decade,
Knight Tour getting its own place and involved in many other research fields such as
watermarking and steganography.
5. As a result, Knight Tour problem become crucial when it come across a bigger chessboard
as previous solution was not able to cater the latter.
Motivation:-
1. We all know what the Knight's Tour is: move the knight so it visits every square of the
chessboard just once.
2. There are around 30 trillion ways to do this, but it is certainly not easy for humans to
execute a single one correctly — least of all blindfolded and starting from a random
square.
3. So we thought, how about we make the computer involve and help in solving this
problem.
Existing System:-
1. The common method of constructing the closed Knight Tour move is moving the Knight from a
single starting point to the ending point on a sequential way. Ball and Coxeter proposed a bisected
Knight Tour solution by dividing the chessboard into two rectangular regions and limit the Knight
to finish the visit of first region before proceeding to second region.
2. This method revised by Dudeney in his book , where the idea of former is extended into four
equal parts with each the same size and shape and trespass twice on the other parts. Domoryad
use the idea of quadrisect Knight Tour as but without visit the center square checker.
BMSIT&M
DEPARTMENT OF CS&E
2020-2021
KNIGHT’S TOUR PAGE NO – 7 OF 7
3. Hurd and Trautman on the other hand, proposed a opened Knight Tour move which produces
the almost same result as with different algorithm and the unvisited square shifted to one of the
corner of the chessboard.
4. Parberry invented a divide-and-conquer algorithm and introduced a concept of “structured”
Knight Tour which able to construct a closed Knight Tour moves of various types. By mean of
dividing the chessboard, a closed legal move also able to calculate when encounter larger
chessboard.
Limitations of Existing System:
1.As we all know that Knight’s tour is one of the problem statement that makes every programmer
eager to learn about the process of programming a code.
2.Similarly we were also enthusiastic and were eager to learn about the problem statement.
3. But unfortunately there were some limitation that were faced by us during the process of
knowing about the “Knight’s Tour”.
4. So the limitation was that we were not able to show the pictorial representation about, how a
knight would travel alongside the chessboard so that it would cover all the squares.
5. So we went on to use the #include <graphics.h> as one of the header file, which would help us
show how actually a knight move and covers all the squares present in an 8X8 chessboard.
Proposed system
➔ To practice on tree traversals, graph traversal dealing with real word problems.
➔ To implement possible heuristics to reduce the complexity while traversing.
Proposed Methodology
This software uses the backtracking algorithm in which the knight is allowed to move as
far as possible until it comes to a blind alley, and at this point it backs up some number of steps
and then tries a different path. It uses the basic data structures like 2d arrays which represents
the chess board and each cell represented by index numbers.
References
➔ Websites for the concept of knight’s tour.
➔ Videos for the backtracking algorithm and code for the knight’s tour.
o https://youtu.be/07yVVGltD7w
o https://youtu.be/1YspHboTIWg
ABSTRACT
CONCEPTS USED IN:
DSA-
BACKTRACKING ALGORITHM-
Backtracking is a general algorithm for finding all solutions to some computational problems,
notably constraint satisfaction problems, that incrementally builds candidates to the solutions,
and abandons a candidate as soon as it determines that the candidate cannot possibly be
completed to a valid solution.
BMSIT&M
DEPARTMENT OF CS&E 2020-2021