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

Explain th term input and output- pseudocode, Explain th term input and ou...

Explain th term input and output-  Pseudocode Input and output indicated by the use of terms input number, print total, output total, print "result is" x and so on.

Illustrate the back face detection method, Illustrate the Back Face Detecti...

Illustrate the Back Face Detection Method A single polyhedron is a convex solid, which has no external angle between faces less  than 180° and there is a simple object space me

Infix notation to postfix notation, Which data structure is required to cha...

Which data structure is required to change infix notation to postfix notation?    Stack function is used to change infix notation to postfix notatio n

Algorithm, Describe different methods of developing algorithms with example...

Describe different methods of developing algorithms with examples.

Applications in file systems of avl trees, 1. In computer science, a classi...

1. In computer science, a classic problem is how to dynamically store information so as to let for quick look up. This searching problem arises frequently in dictionaries, symbol t

Brute force, Determine the number of character comparisons made by the brut...

Determine the number of character comparisons made by the brute-force algorithm in searching for the pattern GANDHI in the text

The searching technique that takes o (1) time to find a data, The searching...

The searching technique that takes O (1) time to find a data is    Hashing is used to find a data

Explain about hidden-surface, Explain about Hidden-surface Hidden-line...

Explain about Hidden-surface Hidden-line removal refers to wire-frame diagrams without surface rendering and polygonal surfaces with straight edges. Hidden-surface removal ref

Implementation of stack using arrays, A Stack has an ordered list of elemen...

A Stack has an ordered list of elements & an array is also utilized to store ordered list of elements. Therefore, it would be very simple to manage a stack by using an array. Thoug

Which are the two standard ways of traversing a graph, Which are the two st...

Which are the two standard ways of traversing a graph? i. The depth-first traversal   ii. The breadth-first traversal

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