What is the average number of comparisons in a sequential
search?

Answer Posted / pavan

n/2(if array contains n elements)

Is This Answer Correct ?    5 Yes 25 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantage of collection classes over arrays?

529


You are given a singly linked list. How would you find out if it contains a loop or not without using temporary space?

696


What do you mean by balance factor of a node in avl tree?

580


Why is map not a collection?

460


Define path in a graph?

521






How are the elements of a 2d array are stored in the memory?

619


Can we make hashmap synchronized?

487


What is best time complexity?

464


How memory is reserved using a declaration statement in data structure?

633


Is int a data structure?

482


What is sort order?

494


Which is better than array and linked list?

516


Which sorting algorithm is the slowest?

473


List the data structures which are used in network data modal.

482


Does the minimal spanning tree of a graph give the shortest distance between any 2 specified nodes?

561