Sorting an Array Using the Topological Sort of a Corresponding Comparison Graph
暂无分享,去创建一个
Abstract The quest for efficient sorting is ongoing, and we will explore a graph-based stable sorting strategy, in particular employing comparison graphs. We use the topological sort to map the comparison graph to a linear domain, and we can manipulate our graph such that the resulting topological sort is the sorted array. By taking advantage of the many relations between Hamiltonian paths and topological sorts in comparison graphs, we design a Divide-and-Conquer algorithm that runs in the optimal O ( n log n ) time. In the process, we construct a new merge process for graphs with relevant invariant properties for our use. Furthermore, this method is more space-efficient than the famous MergeSort since we modify our fixed graph only.
[1] Gary Chartrand,et al. A First Course in Graph Theory , 2012 .
[2] Ronald L. Rivest,et al. Introduction to Algorithms , 1990 .
[3] Xin-She Yang,et al. Introduction to Algorithms , 2021, Nature-Inspired Optimization Algorithms.
[4] Rajat K. Pal,et al. CompleteGraphSort: A complete graph structure based sorting algorithm , 2011, 2011 IEEE International Conference on Computer Science and Automation Engineering.