what is a binary search ? and how it is useful in a sorted
internal table?
Answers were Sorted based on User's Feedback
Answer / saplead.sai
The solution provided by Siddhart is though correct, I
would like to project the solution in a much detailed with
example.
Binary Search Basic rule - Sort the data in Ascending order.
Suppose we have random numbers ranging from 1 to 10000 and
we are searching for 4219. If the data is unorganized and
random....a sequential search would be time consuming.
Hence once the data is sorted in Ascending order. Binary
search would reduce the LOOKUP time.
In the FIRST PASS BINARY search would split the range of 1 -
10000 in to two halfs (i.e 1 - 4999 & 5000 - 10000) and
compares the 4219 which happens to fall in the first half.
In the next pass again two halfs are made and compared.
This way BINARY SEARCH works by dividing either data into
two halfs.
For internal table......or for anything else....this is it
Is This Answer Correct ? | 15 Yes | 0 No |
Answer / siddharth samal
IT DIVIDES THE SEARCH CRITERIA INTO TWO PARTS SO 1ST IT
SEARCH FOR THE 1ST HALF AND IF YOU GET THE DESIRED VALUE IT
WIL NOT SCAN THE SECOND PART WHICH HENANCES PERFORMANCE
TUNING....
Is This Answer Correct ? | 8 Yes | 0 No |
What technical problem you will face if you create many secondary indexes.
In start of selection, if we perform validation, what happens ?
I wrote one script program,Now i want to transfer this program from development to production system so that output is displayed correct in production.please give me the steps.In development showing correct output but whereas in production somewhat difference.So what is the problem?
write the codes for how to fetch data from a select query written under end-of-setection event.
hi i have one requirement on smart forms.i have to print customer details and order details(Based on customer number) in two windows.I want to write total code in report it self.can any one please help me? Thanks in an advance Vijay
Where does the Hide data stored
Utility of bdc cursor?
What are client dependant objects in abap/sap?
What is the use of the raising exception?
I have 2 transactions,the output of 1st transaction is input of 2nd transaction.In this senario...Which method we use to upload the Data,Call trans or Session maethod?How?
which institute is best in hyderabad for abap which is a module in sap.please suggest ur valuable information
Define structure in abap data dictionary?