Sorting-Algorithms (C++)

KTextEditor Snippets

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 50.0%
Description:

Some sorting algorithms written in C++.
Currently implemented:
-Bubble-Sort
-Select-Sort
-Insert-Sort
-Slow-Sort
-Intro-Sort (STL)
-Heap-Sort (STL)
There are also some utility snippets, to shake containers randomly, to dump a container to stderr (or whatever) and to fill containers from stdin (or whatever).
Last changelog:

9 years ago

1.1:
Slow-Sort
Short-Dump
Input

1.0:
Bubble-Sort
Select-Sort
Insert-Sort
Intro-Sort (STL)
Heap-Sort (STL)
Dump
Random-Shake

ashaduri

9 years ago

The container-dump snippet could use some std:: qualifiers.
Also, I think it's too long. Something like:
std::copy(v.begin(), v.end(), std::ostream_iterator<int>(std::cout, ", "));
would be a lot more compact and readable.

Report

C

TheUserK

9 years ago

I will add such a dump.
Thanks.

Report

9 years ago

1.1:
Slow-Sort
Short-Dump
Input

1.0:
Bubble-Sort
Select-Sort
Insert-Sort
Intro-Sort (STL)
Heap-Sort (STL)
Dump
Random-Shake

12345678910
product-maker Base: 4 x 5.0 Ratings
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.1
updated Mar 16 2010
added Feb 27 2010
downloads 24h
0
pageviews 24h 1
System Tags addon