adplus-dvertising
frame-decoration

Question

What be the time complexity for any typical array order?

a.

O(n)

b.

0 (n log n²)

c.

O(n²)

d.

O(log n²)

Answer: (c).O(n²)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What be the time complexity for any typical array order?

Similar Questions

Discover Related MCQs

Q. Quick sort gives O(n log n) worst case performances if the pivot is selected as

Q. T (n) = (2n/3)+1 then T(n) is equal to

Q. A language developed to assist children in learning geometric shapes and computing aspects is

Q. Search tables used by compilers for efficient searching generally use

Q. A complete binary tree with 10 leaves

Q. Which of the following is not correct?

Q. Maximum possible height of an AVL tree with 7 nodes is

Q. What is the minimal number of edges which must be removed from a complete bi partite graph of 6 nodes k(6) so that the remaining graph is planer?

Q. A strictly binary tree with n leave always contain nodes?

Q. The following sequence of the operations is performed on a stack PUSH(10), PUSH(20), POP, PUSH(10), PUSH(20), POP, POP, POP, PUSH(20), POP the sequence of values popped out is

Q. The time complexity of comparison based sorting algorithm is

Q. Adjacency matrix for a digraph is

Q. The time required to insert an element in a stack with linked list implementation is

Q. The time required to search an element in a binary search tree having n element is

Q. Merge sort uses

Q. For merging two sorted lists of sizes m and n to a sorted list of size m+n, we require Comparisons of

Q. The search concept used in associative memory is

Q. Suppose we want to arrange the n numbers stored in an array such that all negative value before all positive ones, minimum number of exchanges required in the worst case

Q. The average time required to perform a successful sequential search for an element in an array A(1:n) is given by

Q. How many comparisons are needed to sort an array of length 5 if a straight selection sort is used and array is already in opposite order?