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  


Give an example of an O (n) algorithm and O (n*n) algorithm such that the algorithm is slower.

0 Answers   Aspiring Minds,


How are the k-nearest neigh-bors (knn) algorithms different from k-means clustering?

0 Answers  


What is meant by a * search algorithm?

0 Answers  


What is greedy best first search algorithm?

0 Answers  






Tell briefly about the Banker's algorithm and what is it used for?

0 Answers   Impetus,


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

0 Answers  


Which algorithm inverts a complete resolution strategy?

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,


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

0 Answers   Amazon,


What are the disadvantages of breadth-first search algorithm?

0 Answers  


Explain the concept behind dead lock avoidance, banker's algorithm.

0 Answers   HPCL, Hughes Systique Corporation,


Categories