AI Algorithms Interview Questions
Questions Answers Views Company eMail

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

Amazon,

743

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

HPCL, Hughes Systique Corporation,

730

Explain the Canny's Algorithm.

Adobe,

729

A lot of questions were asked on sorting for eg. Best algorithm on the basis of number of swaps, number of comparisons etc.

DELL,

972

Define Routing Algorithm?

Maveric,

773

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

Tech Mahindra,

763

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

Aspiring Minds,

753

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).

Expedia,

685

Given 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.

Expedia,

785

Sorting algorithms and time complexity of various algorithms.

InterGraph,

716

What are the complexities of sorting algorithms and how can this complexity be calculated?

Tech Mahindra,

761

Why size of integer depends on the machine architecture then what the best sorting algorithm and why?

HPCL, Hughes Systique Corporation,

728

Write a code/algorithm to find the frequency of each element in an array?

ITC Indian Tobacco Company,

683

Write the Shortest path algorithm for a graph.

Tech Mahindra,

1 1382

What is the most efficient way to store 1 million phone numbers memory-wise?

Aspire, Infogain,

1543


Post New AI Algorithms Questions

Un-Answered Questions { AI Algorithms }

What is simulated annealing algorithm?

817


What are disadvantages uniform cost search algorithm?

1361


What do you mean by overfitting and underfitting algorithms?

694


Which language is used for artificial intelligence?

710


What is greedy best first search algorithm?

746






What are the disadvantages of breadth-first search algorithm?

842


What is meant by a * search algorithm?

702


What is meant by uniform cost search algorithm?

669


Which search algorithm will use a limited amount of memory in an online search?

933


Which search algorithm will use a limited amount of memory in online search?

895


When an algorithm is considered completed?

1422


what is software cycle?give a diagramatic representation

2537


Which algorithm inverts a complete resolution strategy?

768


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?

2025


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

851