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 do you reference the fixed unblock file formats from cobol programs
How do you reference the fixed block file formats from cobol programs
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
How do u write test cases?
What is a scope terminator give example?
What is the difference between next sentence and continue in cobol programing language?
What are the different open modes available in cobol?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
How arrays can be defined in COBOL?
HOw can I get the negative sign while deduct high value from low value
What is the problem of ordered sequential files access?
What are the different rules to perform a Search?
What do you understand by psb and acb?
How are the next sentence and continue different from each other?