Skip to content

Commit 37651e2

Browse files
author
Joshua Scott
authored
updated readme (changed heading sizes)
1 parent 8dde169 commit 37651e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# compare-sorting-algorithms
22
A console program to compare the efficiency of common sorting algorithms (bubble/selection/insertion/merge/quick sort).
33

4-
# What does it do?
4+
## What does it do?
55
This program can create and sort arrays of integers between 0 and 99, using the five common algorithms mentioned above. It will output the number of comparisons and swaps that were performed, to give you a sense of the relative efficiencies of the algorithms.
66

77
By editing the variables in the class Program.cs, you can adjust:
@@ -11,14 +11,14 @@ By editing the variables in the class Program.cs, you can adjust:
1111
- Whether to output updates to the console or not (e.g. "Compared x with y, x is bigger so swapped them", as well as the state of the array at each change. This can take some time with larger arrays)
1212
- How many times to sort (if you want to compare the efficiency of a sorting algorithm, it's useful to call the same algorithm a few times; the program will display an average)
1313

14-
# Why? Who is it for?
14+
## Why? Who is it for?
1515
Well, it's for me! Whilst learning Data Structures and Algorithms at university, I wanted to develop my understanding of common sorting algorithms. Writing this program was a fun way to achieve that, and improve my C# coding skills in the process.
1616

17-
# Future updates
17+
## Future updates
1818
I may or may not add the following features at some point in the future:
1919
- Output a comparison of the times each algorithm took to sort the data
2020
- More sorting algorithms (most likely Heap Sort and Radix Sort)
2121
- Interactive prompt to specify the options upon running the program (as opposed to doing it in the code)
2222

23-
# This looks fun! Can I get involved?
23+
## This looks fun! Can I get involved?
2424
Sure! Just create a branch, get coding, and submit a pull request whenever you like! Or fork it and play around with it if you like.

0 commit comments

Comments
 (0)