Interpolation search is an improved variant of binary search. This
search algorithm works on the probing position of the required value.
For this algorithm to work properly, the data collection should be in a
sorted form and equally distributed.
পৃষ্ঠাসমূহ
Labels
Search Your Article
CS
Pageviews
Monday, January 30, 2017
Data Structure and Algorithms - Hash Table
Hash Table is a data structure which stores data in an associative
manner. In a hash table, data is stored in an array format, where each
data value has its own unique index value. Access of data becomes very
fast if we know the index of the desired data.
Data Structure - Sorting Techniques
Sorting refers to arranging data in a particular format. Sorting
algorithm specifies the way to arrange data in a particular order. Most
common orders are in numerical or lexicographical order.
The importance of sorting lies in the fact that data searching can be optimized to a very high level, if data is stored in a sorted manner. Sorting is also used to represent data in more readable formats.
The importance of sorting lies in the fact that data searching can be optimized to a very high level, if data is stored in a sorted manner. Sorting is also used to represent data in more readable formats.
Data Structure - Bubble Sort Algorithm
Bubble sort is a simple sorting algorithm. This sorting algorithm is
comparison-based algorithm in which each pair of adjacent elements is
compared and the elements are swapped if they are not in order. This
algorithm is not suitable for large data sets as its average and worst
case complexity are of Ο(n2) where n is the number of items.
Data Structure and Algorithms Insertion Sort
This is an in-place comparison-based sorting algorithm. Here, a
sub-list is maintained which is always sorted. For example, the lower
part of an array is maintained to be sorted. An element which is to be
'insert'ed in this sorted sub-list, has to find its appropriate place
and then it has to be inserted there. Hence the name, insertion sort.
Data Structure and Algorithms Selection Sort
Selection sort is a simple sorting algorithm. This sorting algorithm
is an in-place comparison-based algorithm in which the list is divided
into two parts, the sorted part at the left end and the unsorted part at
the right end. Initially, the sorted part is empty and the unsorted
part is the entire list.
Data Structures - Merge Sort Algorithm
Merge sort is a sorting technique based on divide and conquer
technique. With worst-case time complexity being Ο(n log n), it is one
of the most respected algorithms.
Merge sort first divides the array into equal halves and then combines them in a sorted manner.
Merge sort first divides the array into equal halves and then combines them in a sorted manner.
Data Structure and Algorithms - Shell Sort
Shell sort is a highly efficient sorting algorithm and is based on
insertion sort algorithm. This algorithm avoids large shifts as in case
of insertion sort, if the smaller value is to the far right and has to
be moved to the far left.
Data Structure and Algorithms - Quick Sort
Quick sort is a highly efficient sorting algorithm and is based on
partitioning of array of data into smaller arrays. A large array is
partitioned into two arrays one of which holds values smaller than the
specified value, say pivot, based on which the partition is made and
another array holds values greater than the pivot value.
Data Structure - Graph Data Structure
A graph is a pictorial representation of a set of objects where some
pairs of objects are connected by links. The interconnected objects are
represented by points termed as vertices, and the links that connect the vertices are called edges.
Data Structure - Depth First Traversal
Depth First Search (DFS) algorithm traverses a graph in a depthward
motion and uses a stack to remember to get the next vertex to start a
search, when a dead end occurs in any iteration.
Data Structure - Breadth First Traversal
Breadth First Search (BFS) algorithm traverses a graph in a
breadthward motion and uses a queue to remember to get the next vertex
to start a search, when a dead end occurs in any iteration.
Subscribe to:
Posts (Atom)