drytuna / cs373-collatz Goto Github PK
View Code? Open in Web Editor NEWSolving Sphere 3n+1 Problem
Solving Sphere 3n+1 Problem
Project #1: Collatz Date: Wed, 12 Sep 2012 Course Name: CS373 Softwaare Engineering Unique: 53070 First Name: Duy Last Name: Tran EID: dnt264 E-mail: [email protected] Estimated number of hours: 15 Actual number of hours: 11 Turnin CS Username: drytuna GitHub ID: DryTuna GitHub Repository Name: [email protected]:DryTuna/cs373-collatz.git Comments: It was easy to complete the stupid solution. The unit tests really saved times when developing a better cache. My solution used an eager cache. --------------- Code of Conduct --------------- I attest that I have written every line of code that I have submitted and I take full responsibility for the origin of all the code submitted. In particular, if any of the code was originally written in a previous semester or another course I will so acknowledge via e-mail to the grader.
Use pydoc to document the interfaces.
The above documentation only needs to be generated for Collatz.py. Comment each function meaningfully. Use comments only if you need to explain the why of a particular implementation. Choose a coding convention and be consistent. Use good variable names. Write readable code with good indentation, blank lines, and blank spaces.
Come up with a smarter way of using the cache
Shorten the number of cycle calculations by working with the new cache range
the python range function does not look at the last number
The grader's GitHub account will have a public Git repository for unit tests and acceptance tests.
Write acceptance tests before your write the code. When you encounter a bug, write an acceptance test that fails, fix the bug, and confirm that the acceptance test passes. Write an auxiliary program to randomly generate acceptance tests. Create at least 1000 acceptance tests. Tests corner cases and failure cases. Push and pull the acceptance tests to and from the grader's repository. Prepend - to the file names at GitHub (i.e. foo-RunCollatz.in and foo-RunCollatz.out). Reach consensus on the acceptance tests.
Split up functions and have each perform a specific task.
The GitHub repository comes with an issue tracker.
Create an issue for each of the requirements in this table. Create an issue for each bug or feature, both open and closed. Categorize, prioritize, and describe each issue adequately. Create at least 10 more issues in addition to the requirements in this table.
Create a student GitHub account
Perform the submission below.
Collatz.zip
turnin --submit hychyc07 cs373pj1 Collatz.zip
README.txt
Collatz.log
Collatz.py
html/*
RunCollatz.in
RunCollatz.out
RunCollatz.py
SphereCollatz.py
TestCollatz.py.out
TestCollatz.py
need to check ranges when i < num_cache < j is not TRUE
It's taking almost an hour to run 1000 lines of inputs
The grader's GitHub account will have a public Git repository for unit tests and acceptance tests.
Write unit tests before you write the code. When you encounter a bug, write a unit test that fails, fix the bug, and confirm that the unit test passes. Write at least 3 unit tests for each function. Tests corner cases and failure cases. Name tests logically. Push and pull the unit tests to and from the grader's repository. Prepend - to the file names at GitHub (i.e. foo-TestCollatz.py and foo-TestCollatz.py.out). Reach consensus on the unit tests.
Use assert to check pre-conditions, post-conditions, argument validity, return-value validity, and invariants. Worry about this last, but your program should run as fast as possible and use as little memory as possible.
Create a Sphere account
run time error occurred when submitting for V2
Does not work with Sphere when i > j
Sphere requires a single file to be submitted.
Combine Collatz.py and RunCollatz.py.
This is the file that the grader will submit to Sphere to determine a zero vs. non-zero grade.
Not computing the right answer for 1 to 999999
Set up a private Git repository at GitHub, named cs373-collatz.
Invite the grader to your repository. Commit at least 5 times. Commit once for each bug or feature. If you cannot describe your changes in a sentence, you are not committing often enough. Write meaningful commit messages and identify the corresponding issue in the issue tracker (below). Create a log of the commits. Push frequently. It is your responsibility to protect your code from the rest of the students in the class. If your code gets out, you are as guilty as the recipient of academic dishonesty.
implement a lazy cache to work along side with the eager one
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.