Write an algorithm to traverse a knight covering all the squares on a chessboard starting at a particular point.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More AI Algorithms Interview Questions

Consider the following algorithm: for ( i = 2 ; i <= n ; i++) { for ( j = 0 ; j <= n) { cout << i << j ; j = j + floor(n/4) ; } } (a) What is the output when n = 4 (b) What is the time complexity T(n). You may assume that n is divisible 4.

0 Answers  


What are disadvantages uniform cost search algorithm?

0 Answers  


When an algorithm is considered completed?

0 Answers  


Tell us how will you know which machine learning algorithm to choose for your classification problem?

0 Answers  


Why size of integer depends on the machine architecture then what the best sorting algorithm and why?

0 Answers   HPCL, Hughes Systique Corporation,






A* algorithm is based on which search method?

0 Answers  


What is bidirectional search algorithm?

0 Answers  


Explain the Canny's Algorithm.

0 Answers   Adobe,


What is breath-first search algorithm?

0 Answers  


can anyone help me with some suggestions and improvemnts for sage line 50?

0 Answers  


A lot of questions were asked on sorting for eg. Best algorithm on the basis of number of swaps, number of comparisons etc.

0 Answers   DELL,


There are numbers from 1 to n, which are inverted such that it results in numbers from n to 1. If only two consecutive numbers are stampled at a time and are inverted, how many moves are required?

1 Answers   IBM, TCS,


Categories