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


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More AI Algorithms Interview 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).

0 Answers   Expedia,


What do you mean by overfitting and underfitting algorithms?

0 Answers  


Can you list some use cases where classification machine learning algorithms can be used?

0 Answers  


What is iterative deepening depth-first search algorithm?

0 Answers  


Explain the Canny's Algorithm.

0 Answers   Adobe,






Can you pick an algorithm. Write the psuedo-code for a parallel implementation?

0 Answers  


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

0 Answers  


Tell me how do you choose an algorithm for a classification problem?

0 Answers  


What are the disadvantages of depth-first search algorithm?

0 Answers  


what is software cycle?give a diagramatic representation

0 Answers  


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.

0 Answers  


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

0 Answers   Aspiring Minds,


Categories