What is the difference between a binary search and a
sequential search?
Answer Posted / boxee
binary search is fast because
it check the element mid
is element is less
it set the beg
mid=(beg+end)/2;
if(value>a[mid])
{
beg=mid+1;
}
else
{
end=mid-1;
}
| Is This Answer Correct ? | 23 Yes | 0 No |
Post New Answer View All Answers
What type of SDLC u followed? Why?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
What are all the divisions of a COBOL program?
Differentiate between structured cobol programming and object-oriented cobol programming.
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
Explain how to differentiate call by context by comparing it to other calls?
i want a program using by if, evaluate , string, unstring, perform, occurs?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is inspect in cobol ?
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
What is the difference between perform … with test after and perform … with test before?
how to convert the recors form vsam file to db2 table tru file aid
) what is the difference between AID and HANDLE AID?
What are the different open modes available in cobol?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?