GithubHelp home page GithubHelp logo

sjtu_cs249_ass1's Introduction

sjtu_cs249_ass1

Assignment 1 - Heap Sort

Group No.04: Yiwen Zhang 张易文, Kaixi Liu 刘铠溪, Haocheng Zhao 赵浩丞, Jiayi Li 李佳忆, Leyan Lin 林乐研

How to Run

  • Make sure Python 3.x is properly installed with Tcl/Tk
  • Unzip the file (since you're already reading this, you've probably done that already)
  • Open Terminal/Command Line
  • Switch to the working directory of this readme file
  • Run main.py using Python 3.x

If an error message appears saying "tkinter package not found", open up the Python file ('main.py') and change the first line from from tkinter import * to from Tkinter import *

Assumptions & Justifications:

  • Integers are used when inserting to heap and building heap with files
  • While insert numbers to the heap, multiple numbers can be inserted to the list/heap at once
  • When the heap is built by file, we read every numbers in the file and ignoring all other characters. Then, all the numbers read will be added to the list (instead of replacing the original list)
  • "Remove Max" removes the maximum number completely and permanently from the list/heap
  • "Restart" clears all the data and return to main page (welcome page)

Conclusion

We think that we have completed the requirement nicely and completely. All the required functions have been well addressed. Our algorithm is very easy to read in a separated file, and our GUI is very easy to use and understand.

sjtu_cs249_ass1's People

Contributors

sushi6006 avatar

Watchers

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