Skip to content

yuandong1222/Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithm

1. Description

All impl and performance test for algorithm of the teaching material DataStructure writen by Weimin Yan.

The performance test includes include different sort algorithm with different input, the result may be:

binary_insertion bubble heap merging quick2 quick shell simple_selection straight_insertion system
l_asc 2.00 161.00 3.00 3.00 3.00 181.00 2.00 173.00 1.00 2.00
l_desc 183.00 283.00 3.00 3.00 3.00 175.00 25.00 166.00 191.00 2.00
l_random 93.00 331.00 3.00 4.00 3.00 3.00 14.00 172.00 95.00 3.00
l_same 2.00 160.00 2.00 3.00 190.00 180.00 2.00 172.00 1.00 2.00
s_asc 18.00 17.00 18.00 20.00 19.00 19.00 18.00 17.00 16.00 17.00
s_desc 19.00 19.00 19.00 20.00 19.00 20.00 18.00 17.00 19.00 21.00
s_random 18.00 18.00 19.00 20.00 19.00 18.00 17.00 17.00 17.00 19.00
s_same 18.00 18.00 17.00 21.00 20.00 18.00 17.00 19.00 15.00 18.00

2. Usage

2.0 Clone

$ git clone https://github.com/yuandong1222/Algorithm.git

$ cd Alogrithm

2.1 Run and Judge Single Test

$ vim makefile and replace PROBLEM and SOLUTION to what you want

$ make run_test

2.2 Run Performance Test

$ make run_performance_test

About

Basic Algorithms such as sort and their performance tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published