What is the difference between a binary search and a
sequential search?
Answer Posted / shailendra
binary search :
only = is valid, only one comparision os possible, search
all will be in syntex,input file will be sorted order with
the key on which basis we search.
seqential search :
many comparision is possible at the same time,
all the comparision > < = greater equal and other
comparision is possible
srted order is not req.
in syntex only search will mention
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
how to move the records from file to array table. give with code example
What are declaratives and what are their uses in cobol?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
Write a program to enter and display the names of students in a class using the occurs clause.
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.
A table has two indexes defined. Which one will be used by the SEARCH?
Why would you use find and get rather than to obtain?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What are the rules of the move verb?
Are you comfortable in cobol or jcl?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
Discuss about changing dataset name in proc.
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 is amode(24), amode(31), rmode(24) and rmode(any)?
What is length is cobol?