Write an algorithm to traverse a knight covering all the squares on a chessboard starting at a particular point.
982A lot of questions were asked on sorting for eg. Best algorithm on the basis of number of swaps, number of comparisons etc.
DELL,
1220Given a series of positive integers. Design an efficient algorithm that can detect pairs whose sum is equal to K such that K = ei + ej, and (i not equal to j).
944Given a sorted array of n integers that has been rotated i(unknown) number of times, give a (log n) algorithm that finds an element in the array.
1223Why size of integer depends on the machine architecture then what the best sorting algorithm and why?
971Post New AI Algorithms 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.
What is breath-first search algorithm?
A* algorithm is based on which search method?
What are the complexities of sorting algorithms and how can this complexity be calculated?
What do you mean by overfitting and underfitting algorithms?
What is the uniform cost search algorithm?
Which is the most straight forward approach for planning algorithm?
What is the bidirectional search algorithm?
Give an algorithm for the following problem. Given a list of n distinct positive integers, partition the list into two sublists, each of size n/2, such that the difference between the sums of the integers in the two sublists is minimized. You may assume that n is a multiple of 2.
Which algorithm is used for solving temporal probabilistic reasoning?
Why size of integer depends on the machine architecture then what the best sorting algorithm and why?
Explain me what's your favorite algorithm, and can you explain it to me in less than a minute?
What features would you use to build a recommendation algorithm for users?
What is software cycle? Give a diagrammatic representation?
Draw a flowchart to find the average of four number?