If we have ‘n’ records which have been ordered by keys so that x 1 < x 2 < … < x n . When we are given a element ‘x’, binary search is used to find the corresponding element from the list. In case ‘x’ is present, we have …

Read More »## Linear Search using Java

There are basically two aspects of computer programming. One is data organization also commonly called as data structures. Till now we have seen about data structures and the techniques and algorithms used to access them. The other part of computer programming involves choosing the appropriate algorithm to solve the problem. …

Read More »## Difference between Linkedlist and Array

Linked lists and arrays are similar since they both store collections of data. Array is the most common data structure used to store collections of elements. Arrays are convenient to declare and provide the easy syntax to access any element by its index number.Once the array is set up, access …

Read More »## What is Linked List

A linked list is a non-sequential collection of data items. It is a dynamic data structure. For every data item in a linked list, there is an associated pointer that would give the memory location of the next data item in the linked list. The data items in the linked …

Read More »## What is an Algorithm ?

An algorithm is a finite sequence of instructions, each of which has a clear meaning and can be performed with a finite amount of effort in a finite length of time. No matter what the input values may be, an algorithm terminates after executing a finite number of instructions. In …

Read More »## Organization of data In Data Structures

The collection of data you work with in a program have some kind of structure or organization of data In Data Structures. No matte how complex your data structures are they can be broken down into two fundamental types. Contiguous Non-Contiguous In contiguous structures, terms of data are kept together …

Read More »## What is Data Structures ?

The term data structure is used to describe the way data is stored, and the term algorithm is used to describe the way data is processed. Data structures and algorithms are interrelated. Choosing a data structure affects the kind of algorithm you might use, and choosing an algorithm affects the …

Read More »