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 code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

700


Explain how you can characterize tables in cobol?

638


What is the difference between perform … with test after and perform … with test before?

883


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

720


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1931






please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1958


In COBOL programming, what is PERFORM? What is VARYING?

672


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5690


explain sorting techniques in cobol program?

690


What are all the divisions of a COBOL program?

665


What is a report item?

741


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

631


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2105


What is the difference between PIC 9.99 and 9v99 in COBOL?

732


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2060