Tell me how do you choose an algorithm for a classification problem?
Name search algorithm technology?
Draw a flowchart to find the average of four number?
Write a code/algorithm to find the frequency of each element in an array?
What features would you use to build a recommendation algorithm for users?
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.
What’s your favorite algorithm, & can you explain it into me in less than a minute?
What are the complexities of sorting algorithms and how can this complexity be calculated?
Consider the following algorithm, where the array A is indexed 1 through n: int add_them ( int n , int A[ ] ) { index i , j , k ; j = 0 ; for ( i = 1 ; i <= n ; i++) j = j + A[i] ; k = 1 ; for ( i = 1 ; i <= n ; i++) k = k + k ; return j + k ; } (a) If n = 5 and the array A contains 2, 5, 3, 7, and 8, what is returned? (b) What is the time complexity T(n) of the algorithm?
Write an algorithm to traverse a knight covering all the squares on a chessboard starting at a particular point.
Tell briefly about the Banker's algorithm and what is it used for?
Give a general algorithm for converting a m-array tree to a 2-ary tree.
Tell us how will you know which machine learning algorithm to choose for your classification problem?
Give an example of an O (n) algorithm and O (n*n) algorithm such that the algorithm is slower.
What is the iterative deepening depth-first search algorithm?