Skip to content

yeldmitrenko/algorithms-labs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lab-1

Task

Implement a sorting algorithm - HeapSort(ascending/descending)

Result output

  • Algorithm's name
  • Execution time
  • Counters: swaps, comparisons
  • Sorting result

Code must be covered with tests

  • sort the input array
  • sort in ascending order of sorted array in ascending order
  • sort in descending order of sorted array in ascending order
  • sort in ascending order of sorted array in descending order
  • sort in descending order of sorted array in descending order

How to run

  • 'cd' into folder where you want to store this repository
  • Clone this repository with command 'git clone https://github.com/yeldmitrenko/Algorithms_Labs.git'
  • Choose branch lab_1 with command 'git checkout lab_1'
  • Go into folder with files with command 'cd Algorithms_Labs'
  • run command 'python main.py'