AI Algorithms Interview Questions
Questions Answers Views Company eMail

What is Na?ve Bayes Algorithm?

2 5674

What is Back propagation in Neural Networks?

1 7866

what are the minimum requirements for statr testing?

QA,

2223

what is software cycle?give a diagramatic representation

2395

what is software cycle?give a diagramatic representation

2104

Draw a flowchart to find the average of four number?

3811

list the types of linked list with aid of diagram?

2217

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

2114

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?

IBM, TCS,

1 4602

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.

2164

Consider the following algorithm: j = 1 ; while ( j <= n/2) { i = 1 ; while ( i <= j ) { cout << j << i ; i++; } j++; } (a) What is the output when n = 6, n = 8, and n = 10? (b) What is the time complexity T(n)? You may assume that the input n is divisible by 2.

1 4448

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.

1286

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?

1844

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.

2185

What features would you use to build a recommendation algorithm for users?

Twitter,

578


Post New AI Algorithms Questions

Un-Answered Questions { AI Algorithms }

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?

1844


What is meant by uniform cost search algorithm?

505


Which is the most straight forward approach for planning algorithm?

673


When an algorithm is considered completed?

1227


Sorting algorithms and time complexity of various algorithms.

581






list the types of linked list with aid of diagram?

2217


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

533


How does deep learning contrast with other machine learning algorithms?

528


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.

1286


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

496


What’s your favorite algorithm, & can you explain it into me in less than a minute?

811


What is bidirectional search algorithm?

700


Explain me what's your favorite algorithm, and can you explain it to me in less than a minute?

677


Give a general algorithm for converting a m-array tree to a 2-ary tree.

611


What are the disadvantages of breadth-first search algorithm?

666