Sorting of Numbers in a Graph-Theoretic Approach
Main Article Content
Abstract
Till now we have not come across any algorithm that uses graphs to sort any set of numbers (only topological sorts like-Breadth First Search and Depth First Search exist). Our aim in this paper is to sort a set of numbers in either ascending or descending order, using undirected weighted graphs and is based on already existing Kruskal’s algorithm. This paper highlights this new application of the algorithm and the fact that it can be extended to sorting numbers as well. The given set of numbers to be sorted are assigned to the vertices of the graph and the edges incident to that ordered pair of vertices are assigned some integer value(weights) based on which the sorting is done. The complexity of the algorithm in this paper is in accordance with the complexities of already existing sorting algorithms.
Â
Keywords: Graph completeness, ‘good’ graphs, sorting, Kruskal’s Algorithm, complexity.
Downloads
Article Details
COPYRIGHT
Submission of a manuscript implies: that the work described has not been published before, that it is not under consideration for publication elsewhere; that if and when the manuscript is accepted for publication, the authors agree to automatic transfer of the copyright to the publisher.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work
- The journal allows the author(s) to retain publishing rights without restrictions.
- The journal allows the author(s) to hold the copyright without restrictions.