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
how can i see junk values in dclgen or in hostvariable of comp ?
Differentiate between structured cobol programming and object-oriented cobol programming.
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
how do you reference the ksds vsam file formats from cobol programs
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What is the difference between comp and comp-3?
What are the various section in data division and briefly explain them.
How do you reference the following file formats from cobol programs?
i need a small 3d program using inline and outline.
What is length is cobol?
example for sub strings ? and refernce modifications whit output pls
what is s000 u4087 error? please give the all error codes in cobol,jcl.
Explain how to differentiate call by context by comparing it to other calls?
What is a scope terminator give example?