Data Flashcards
is a very simple search algorithm. In this type of search, a sequential search is made over all items one by one. Every item is checked and if a match is found then that particular item is returned, otherwise the search continues till the end of the data collection.
Linear search
is an improved variant of binary search. This search algorithm works on the probing position of the required value.
Interpolation search
is a fast search algorithm with run-time complexity of Ο (log n). This search algorithm works on the principle of divide and conquer.
Binary search
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.
Sorting
directory stores the telephone numbers of people sorted by their names, so that the names can be searched easily.
Telephone Directory
tores words in an alphabetical order so that searching of any word becomes easy.
Dictionary
these algorithms do not require any extra space and sorting is said to happen in-place, or for example, within the array itself
In-Place Sorting
the program requires space which is more than or equal to the elements being sorted. Sorting which uses equal or more space
Not In-Place Sorting
does not change the sequence of similar
content in which they appear
Stable Sorting
changes the sequence of similar content
in which they appear
Unstable Sorting
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 O(n2) where n is the number of items.
Bubble sort
An element which is to be ‘inserted’ in this sorted sub-list, has to find its appropriate place and then it has to be inserted there.
The array is searched sequentially and unsorted items are moved and inserted into the sorted sub-list (in the same array). 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.
Insertion Sort
is a pictorial representation of a set of objects where some pairs of objects are connected by links.
graph
the interconnected objects are represented by points termed. Each node of the graph is represented as a vertex.
Vertices
the links that connect the vertices. Edge represents a path between two vertices or a line between two vertices.
Edges
Two node or vertices are adjacent if they are connected to each other through an edge.
Adjacency
represents a sequence of edges between the two vertices.
Path
What are the 3 basic operations
Add vertex
Add edges
Display Vertix