Sorting algorithm substituting the prebuilt 'sort' function in MATLAB
1 回表示 (過去 30 日間)
古いコメントを表示
I am given a .mat file with 90+ countries (AUS,CAD,USA etc) and we are supposed to sort it alphabetically before we could use it for further processing. The problem is, I am not allowed to use a prebuilt sorting function. How should the sorting algorithm look like?
Thanks
回答 (1 件)
Prasad Mendu
2016 年 11 月 23 日
As Per Iskakson mentioned in the comments, you can start off with Bubble sort and then explore other sorting algorithms that have less time complexity.
Some useful links to look at:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Shifting and Sorting Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!