Simple Sorting Methods

버전 1.1.0.0 (30.4 KB) 작성자: Reza Ahmadzadeh
This submission includes four sorting algorithms and a test demo.
다운로드 수: 266
업데이트 날짜: 2015/7/13

라이선스 보기

This submission includes four sorting algorithms and a test demo. The algorithms include, Bubble Sorting Algorithm, Cocktail Sorting Algorithm, Insertion Sort Algorithm, and Odd-Even Sorting Algorithm. These algorithms receive a vector and sort the elements of the vector and return it in an output vector.
For Example for using the bubble sort algorithm, you can do as follows:
>> A = rand(1,100) % a vector including 100 random variables
>> SortedA1 = bubbleSort(A);
To understand the algorithms you can google them and check for instance the upcoming wikipedia pages.
To test all the algorithms at once you can run the demo

>> testSorting

인용 양식

Reza Ahmadzadeh (2024). Simple Sorting Methods (https://www.mathworks.com/matlabcentral/fileexchange/52077-simple-sorting-methods), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R14
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

Added a new sort algorithm

1.0.0.0

Added a snapshot