If there are two sorted arrays, then process of combining these sorted array into another sorted array is called merging. Let us take one example. Let us suppose \(arr_1\) and \(arr_2\) are two sorted array,
The prerequisite for binary search is that the array should be sorted. Firstly we compare the item to be searched with the middle element of the array. If the item is found there, our search finishes successfully
Simplest method for searching an element in an array is sequential search or linear search. It is performed in a linear way i.e. start from the beginning of the array and continue till we find the item
In the previous post we introduce the array data structure. In this post we introduce one dimensional array. If only one subscript is required to reference all the element of the array, then the array is termed as
If we want to store a group of data together in one place, then an array data structure we should looking for. This data structure enables us to arrange more than one element, that is why it is a termed as a composite data structure. In this data structure, all
The latest hit on TV is a jumping game played on a giant rectangular chessboard. Each participant dresses up in a green frog suit and starts at the top left corner of the board.