what are the Pre requisites for binary search?

Answer Posted / sowjanya

The list of array(elements or items) that are to be searched
for a required element should be in ascending order or
sorted order for the search to be performed.

Eg: 21, 3, 4, 2, 5
search for 2
not found

2, 3, 7, 56, 133
search for 2
found

Is This Answer Correct ?    16 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between RETURNING and CHANGING parameters for a method?

1314


What is the use of program rsbdcsub? : abap bdc

866


Define dispatcher?

1026


What are the different types of the sap abap data dictionary objects?

769


I need some information regarding Vcentric Test pattern ? with questions.

1927


what are the two methods of modifying sap standard tables? : abap data dictionary

854


What are the different abap/4 editors?

778


Explain the advantages of logical databases?

787


Explain the Inportance of pa40? : abap hr

762


What are the problems in processing batch input sessions?

791


What is the difference between pnp and pnpce? : abap hr

1353


What are aggregated objects

748


What is an evaluation path? : sap abap hr

738


A subroutine can be terminated unconditionally using exit. State true or false : abap modularization

821


What is exception class and test class. How to use it?

1123