Giter Site home page Giter Site logo

co2412-assignment_sorting_algorithms's Introduction

Python Assignment for Computational Thinking

Tasks involve: Random name generator after trimming 4000 names from firstNames and lastNames, before combining them randomly to make 4000 full names. Save them into a file and also record the longest name in term of characters and print it to the console.

Console output for generating 4000 full names from the two text files after trimming the first 4000 names

Random array generator of lengths:

  • 100
  • 1,000
  • 10,000

The arrays will simulate a real world dataset. Each generated number in the array will have a value between 100,000 and 999,999.

Sort the array using three Selection Algorithms; Selection sort, Merge sort and Quicksort.

Apply each algorithm separately and ensure you sort copies of the original array to keep data integrity intact.

Performance analysis

Measure and analyse the following performance metrics for each sorting algorithm and dataset size including:

  • The execution time (in milliseconds) for sorting each array
  • Number of comparison made during the sorting process
Show image Algorithm sorting execution times printed to console

Graphical comparison of sorting algorithms

Generate and create graphs (e.g. line charts, bar charts, scatter graph) to visually compare the performance of the three sorting algorithms across various dataset sizes. Present the execution time versus the array sizes in a clear and concise manner to facilitate easy comparison.

Graph comparing Selection, Merge and Quick sorting algorithms

co2412-assignment_sorting_algorithms's People

Contributors

ldavidson8 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.