Giter VIP home page Giter VIP logo

sorting-project's Introduction

Sorting Project

  • Made with C/C++
  • Includes Selection Sort, Insertion Sort, Bubble Sort, Shaker Sort, Shell Sort, Heap Sort, Merge Sort, Quick Sort, Counting Sort, Radix Sort, and Flash Sort.
  • This is a Project of Data Structures & Algorithms Subject

Requirements

Deployment

Algorithm Mode

  • Command 1: Run a sorting algorithm on the given input data
    • Prototype: [Execution file] -a [Algorithm] [Given input] [Output parameter(s)]
    • Ex: a.exe -a radix-sort input.txt -both
% a.exe -a [Algorithm] [Input file] [Output param]
  • Command 2: Run a sorting algorithm on the data generated automatically with specified size and order - Prototype: [Execution file] -a [Algorithm] [Input size] [Input order] [Output parameter(s)] - Ex: a.exe -a selection-sort 50 -rand -time
% a.exe -a [Algorithm] [Input size] [Input order] [Output Param]
  • Command 3: Run a sorting algorithm on ALL data arrangements of a specified size.
    • Prototype: [Execution file] -a [Algorithm] [Input size] [Output parameter(s)]
    • Ex: a.exe -a binary-insertion-sort 70000 -comp
% a.exe -a [Algorithm] [Input size] [Output Param]

Comparison Mode

  • Command 4: Run two sorting algorithms on the given input.
    • Prototype: [Execution file] -c [Algorithm 1] [Algorithm 2] [Given input]
    • Ex: a.exe -c heap-sort merge-sort input.txt
% a.exe -c [Algorithm1] [Algorithm2] [Input file]
  • Command 5: Run two sorting algorithms on the data generated automatically.
    • Prototype: [Execution file] -c [Algorithm 1] [Algorithm 2] [Input size] [Input order]
    • Ex: a.exe -c quick-sort merge-sort 100000 -nsorted
% a.exe -c [Algorithm1] [Algorithm2] [Input size] [Input order]

Thanks for watching

Author: Nguyễn Thái Hiệp

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.