knights-tour Questions

4

I code the Knight's tour algorithm in c++ using Backtracking method. But it seems too slow or stuck in infinite loop for n > 7 (bigger than 7 by 7 chessboard). The question is: What is the Time c...

4

Solved

I know there are several similar threads, but I didn't find a solution even outside of SO. Here's my problem: I implemented Warnsdorff's algorithm for the Knight's Tour problem http://en.wikipedia...
Ciracirca asked 6/12, 2011 at 15:44

1

I'm trying to solve the Knight's tour problem in Java. My goal is to calculate all possible tours of a horse on a chessboard with any dimension. What I have tried to use is an adjadency-lists data ...
Bifid asked 10/1, 2016 at 22:49

8

Solved

I am currently trying to write a simple multi-threading program using Python. However I have run on to a bug I think I am missing. I am trying to simply write a program that uses a brute force appr...
Massingill asked 11/2, 2014 at 12:26

2

Solved

So I came up with this implementation for solving knights tour for a 8*8 chess board. But seems like it is taking a long time running (so long that I have to stop it). But if I replace the dx, dy a...

2

Solved

I'm trying to write code for the Knight's Tour: A knight's tour is a sequence of moves of a knight on a chessboard such that the knight visits every square exactly once. I've been trying to al...
Poignant asked 6/8, 2013 at 6:39

2

Solved

I have played a little flash game recently called Just A Trim Please and really liked the whole concept. The basic objective of the game is to mow the whole lawn by going over each square once. Yo...
Virility asked 21/8, 2013 at 22:54

7

Solved

Last couple of days, I have refrained myself from master's studies and have been focusing on this (seemingly simple) puzzle: There is this 10*10 grid which constitutes a square of 100 available...
Consultation asked 20/4, 2009 at 11:41
1

© 2022 - 2024 — McMap. All rights reserved.