Giter Club home page Giter Club logo

sorting_algorithms's Introduction

C - Sorting algorithms & Big O

Resources:books:

Read or watch:


Learning Objectives:bulb:

  • At least four different sorting algorithms
  • What is the Big O notation, and how to evaluate the time complexity of an algorithm
  • How to select the best sorting algorithm for a given input
  • What is a stable sorting algorithm

0-O: Time Complexity of 0-bubble_sort.c

0-bubble_sort.c: sorts an array of integers in ascending order using the Bubble sort algorithm

0-main.c: Test 0-bubble_sort.c

1-O: Time Complexity of 1-insertion_sort_list.c

1-insertion_sort_list.c: Sort a doubly linked list of integers in ascending order using the Insertion sort algorithm.

1-main.c: Test 1-insertion_sort_list.c

100-shell_sort.c: Sort an array of integers in ascending order using the Shell sort algorithm, using the Knuth sequence

101-O: Time complexity of 101-cocktail_sort_list.c

101-cocktail_sort_list.c: sorts a doubly linked list of integers in ascending order using the Cocktail shaker sort algorithm.

102-O: Time complexity of 102-counting_sort.c.

102-counting_sort.c: sorts an array of integers in ascending order using the Counting sort algorithm.

103-O: Time complexity of 103-merge_sort.c

103-merge_sort.c: Sort an array of integers in ascending order using the Merge sort algorithm.

104-O: Time complexity of 104-heap_sort.c

104-heap_sort.c: Sort an array of integers in ascending order using the Heap sort algorithm.

105-O: Time complexity of 105-radix_sort.c.

105-radix_sort.c: Sort an array of integers in ascending order using the Radix sort algorithm.

2-O: Time complexity of 2-selection_sort.c.

2-main.c: Test of 2-selection_sort.c.

2-selection_sort.c: Sort an array of integers in ascending order using the Selection sort algorithm.

3-O: Time complexity of 3-quick_sort.c.

3-main.c: Test of 3-quick_sort.c.

3-quick_sort.c: Sort an array of integers in ascending order using the Quick sort algorithm.

print_array.c: Print an array in C language

print_list.c: Print a single linked list in C language

sort.h: Header of above functions.


Authors

sorting_algorithms's People

Contributors

lukwagoraymond avatar saad-out avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.