***Welcome to ashrafedu.blogspot.com * * * This website is maintained by ASHRAF***

    Tuesday, September 19, 2023

    Sorting

    Sorting is the operation of arranging the records of a table according to the key value of each record, or it can be defined as the process of converting an unordered set of elements to an ordered set.

    Sorting algorithms are divided into two categories: internal and external sorts.

    Any sort algorithm that uses main memory exclusively during the sorting is called as an internal sort algorithm.

    Any sort algorithm that uses external memory, such as tape or disk, during the sorting is called as an external sort algorithm.

    Internal sorting is faster than external sorting.

    No comments:

    Post a Comment

    Prim’s algorithm for finding MST (Minimum Spanning Tree)

    Prim's algorithm to find minimum cost spanning tree uses the greedy approach. Prim's algorithm, in contrast with Kruskal's algor...