Write an algorithm to traverse a knight covering all the squares on a chessboard starting at a particular point.
934A lot of questions were asked on sorting for eg. Best algorithm on the basis of number of swaps, number of comparisons etc.
DELL,
1189Given 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).
905Given 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.
1164Why size of integer depends on the machine architecture then what the best sorting algorithm and why?
920Post New AI Algorithms Questions
Given 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).
Tell me how do you choose an algorithm for a classification problem?
What is the breadth-first search algorithm?
Write an algorithm to traverse a knight covering all the squares on a chessboard starting at a particular point.
Draw a flowchart to find the average of four number?
What’s your favorite algorithm, & can you explain it into me in less than a minute?
What is greedy best first search algorithm?
What is the most efficient way to store 1 million phone numbers memory-wise?
what is software cycle?give a diagramatic representation
1. Consider the following algorithm: for ( i = 1 ; i <= 1 . 5 n ; i++) cout << i ; for ( i = n ; i >= 1 ; i - - ) cout << i ; (a) What is the output when n = 2, n = 4, and n = 6? (b) What is the time complexity T(n)? You may assume that the input n is divisible by 2.
What is software cycle? Give a diagrammatic representation?
Which language is used for artificial intelligence?
What do you mean by overfitting and underfitting algorithms?
What is breath-first search algorithm?
Can you list some use cases where classification machine learning algorithms can be used?