The element being searched for is not found in an array of
100 elements. What is the average number of comparisons
needed in a sequential search to determine that the element
is not there, if the elements are completely unordered?

Answer Posted / ntrphanikumar

100 comparisions

since element is not there and the data is unordered we need
to compare with each and every element

Is This Answer Correct ?    46 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we delete the first node from the singly linked list?

495


What do you mean by general trees?

541


How to check array contains value or not?

574


How many types of lists are there?

519


Which is the best book for data structures and algorithms?

474






How do you sort an array in decreasing order?

471


What exactly is data?

518


Define an algorithm. What are the properties of an algorithm?

507


Difference between arrays and linked list?

544


Which file contains the definition of member functions?

500


Is red black tree balanced?

505


What is meant by binary tree traversal?

560


What are priority queues?

510


Write an algorithm for inserting and deleting an element from doubly linked list?

501


Is list same as array?

466