What is the difference between a binary search and a
sequential search?

Answer Posted / muthu

binary search runs in O(logn) time whereas linear search
runs in O(n) times thus binary search has better
performance.

Is This Answer Correct ?    36 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you reference the variable block file formats from cobol programs

675


example for sub strings ? and refernce modifications whit output pls

1837


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

708


What is the difference between external and global variables in COBOL?

806


What rules are to be followed while using the corresponding options?

627






Write some characteristics of cobol as means of business language.

611


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8616


What is the difference between PIC 9.99 and PIC9v99?

771


A table has two indexes defined. Which one will be used by the SEARCH?

750


Name the sections present in data division.

696


What is the difference between Global and External Variables?

657


What is the local-storage section?

674


how do you reference the ksds vsam file formats from cobol programs

649


i need a small 3d program using inline and outline.

1629


HOw can I get the negative sign while deduct high value from low value

1781