Sorting, Data Structure & Algorithms

Assignment Help:

Retrieval of information is made simpler when it is stored into some predefined order. Therefore, Sorting is a very important computer application activity. Several sorting algorithms are obtainable. Different environments need different sorting methods. Sorting algorithms can be characterized into the following two manners:

A.    Simple algorithms that require the order of n2 (written as O(n2))comparisons to sort n items.

B.     Sophisticated algorithms which require the O(nlog2n) comparisons to sort n items.

The difference lies in the fact that the first method moves data merely over small distances in the procedure of sorting, whereas the second method moves data onto large distances, so that items settle in the proper order sooner, therefore resulting in fewer comparisons. Performance of sorting algorithm can also based on the degree of order already present in the data.

There are two fundamental categories of sorting methods: Internal Sorting & External Sorting. Internal sorting is applied whereas the entire collection of data is to be sorted is small adequate so that the sorting can occur within the main memory. The time needed to read or write is not assumed to be important in evaluating the performance of internal sorting methods. External sorting methods are applied on larger collection of data that reside on secondary devices. Read & write access times are a major concern in determining sorting performances of such methods.


Related Discussions:- Sorting

Methods of collision resolution, Methods of Collision Resolution 1)  Co...

Methods of Collision Resolution 1)  Collision Resolution by separate chaining  2)  Collision Resolution by open addressing

Two broad classes of collision resolution techniques, Two broad classes of ...

Two broad classes of collision resolution techniques are A) open addressing and B) chaining

What is solid modeling, What is Solid modeling Solid modeling is the mo...

What is Solid modeling Solid modeling is the most powerful of the 3-D modeling technique. It provides the user with complete information about the model. Defining an object wit

What are the different ways of representing a graph, What are the different...

What are the different ways of representing a graph? The different ways of representing a graph is: Adjacency list representation: This representation of graph having of an

Explain division method, Explain Division Method Division Method: - In...

Explain Division Method Division Method: - In this method, key K to be mapped into single of the m states in the hash table is divided by m and the remainder of this division

Binary search technique, Q. Describe the basic concept of binary search tec...

Q. Describe the basic concept of binary search technique? Is it more efficient than the sequential search?         Ans : The bin ary search technique:- This tec

State the painter algorithm, Painter's Algorithm As the name suggests, ...

Painter's Algorithm As the name suggests, the algorithm follows the standard practice of a painter, who  would paint the background (such as a backdrop) first, then the major d

Efficient way of storing a sparse matrix in memory, Explain an efficient wa...

Explain an efficient way of storing a sparse matrix in memory.   A matrix in which number of zero entries are much higher than the number of non zero entries is called sparse mat

Quicksort and bubble sort algorithms, Task If quicksort is so quick, w...

Task If quicksort is so quick, why bother with anything else? If bubble sort is so bad, why even mention it? For that matter, why are there so many sorting algorithms? Your

Searching, Searching is the procedure of looking for something: Finding one...

Searching is the procedure of looking for something: Finding one piece of data that has been stored inside a whole group of data. It is frequently the most time-consuming part of m

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd