What is the difference between a binary search and a
sequential search?

Answer Posted / shyamendra

Binary search is attampt on file which is in sorted
order.Search All is the key word.Only one 'WHEN'
& 'AND'.Only '=' is used.
While Linear search can be attempt on any
file.Any logical operation is possible.Multiple 'WHEN' are
possible.Index is set to 1 before starting searching.When
table size is small then only we use this.

Is This Answer Correct ?    40 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a binary search and a sequential search what are the pertinent cobol?

735


How do you get the data to code the BMS macro?

1476


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

712


How are the next sentence and continue different from each other?

766


What is the Purpose of POINTER Phrase in STRING command in COBOL?

721






What is the difference between goback, stop run and exit program in cobol?

929


) How do u handle errors in BMS macro

1510


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2118


What is rmode(any) ?

686


Difference between array and sub-script ?

1167


Define static linking and dynamic linking.

669


Write the code implementing the perform … varying.

646


What is the Purpose of Pointer in the string?

643


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6831


) how do u code after getting data?

1580