Coder Social home page Coder Social logo

it003_sortingexperiment's Introduction

Thực nghiệm các thuật toán sắp xếp

Mô tả

Thí nghiệm ghi nhận thời gian thực thi 10 bộ dữ liệu của các thuật toán sắp xếp QuickSort, HeapSort, MergeSorthàm sort của C++

Cấu trúc Repository

Repository chứa file báo cáo kết quả thực nghiệm (pdf) và hai thư mục chính:

  1. code: Chứa code của các thuật toán sắp xếp QuickSort.cpp, HeapSort.cpp, Mergesort.cppSortCpp.cpp.
  2. test: Chứa 10 bộ dữ liệu được sử dụng để kiểm tra thuật toán. Mỗi tệp chứa một dãy số thực ngẫu nhiên.
    • Tệp test1.inp chứa dãy được sắp xếp tăng dần
    • Tệp test2.inp chứa dãy được sắp xếp giảm dần
    • Các tệp còn lại được sắp xếp ngẫu nhiên.

Thực hiện thí nghiệm

Để thực hiện thí nghiệm, bạn cần cài đặt C++ trên máy tính của mình. Làm theo các bước sau:

  1. Sao chép repository vào máy tính của bạn.
git clone [email protected]:cnmeow/IT003_SortingExperiment.git
  1. Mở thư mục code, chạy file code của thuật toán cần thí nghiệm. Dữ liệu đầu ra gồm 10 dòng tương ứng với thời gian mà thuật toán đó sắp xếp 10 bộ dữ liệu.

it003_sortingexperiment's People

Contributors

cnmeow avatar tuanle03 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.