Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jiveyguy/big0time
COSC2336 - Lab 3 Studdy the impact of O() on a problem solution and learn to design and tweak an experiment: 1 - Use the 3 different algorithms for Maximum Contiguous Subsequence Sum, you can copy the code from http://www.crazyforcode.com/maximum-sum-in-contiguous-subarray/ - Give credit. You will need to tweak the code to make it work. You can also simplify the code... 2 - Use StopWatch class from the book for timing 3 - Build a tester that: * Generates datasets randomly * Run all 3 algorithm with each generated dataset * You will need multiple test-runs to establish N such that value of T(N) are neither too short (Resolution is mili-second) or too long (Longer than ~ 1 day) * Initially loop multiplying the dataset size by 2 (Initial multiplier) every time 4 - Follow the analysis of experimental data from the book page 176. Plot the data using excel 5 - From this estimate a good starting N and increment such that your table will have at least 4 lines with all 3 results 6 - Run the test and repeat 10 times to obtain an average (you can test with other work-load present or computer idle) 7 - Build a table that shows N vs. average / minimum / maximum T(N) for all 3 algorithms 8 - Turn a professional looking report: a. describes the experiment b. include the code c. include a sample run d. explain the final set of numbers you used (starting size and multiplier and time cut-off) e. explain the findings f. estimate the constant factors for all 3 algorithms assuming aN-cube, bN-square, and cN. 9 - Turn in your code (.java) and the report via e-mail to [email protected]
https://github.com/jiveyguy/big0time
Last synced: 25 days ago
JSON representation
COSC2336 - Lab 3 Studdy the impact of O() on a problem solution and learn to design and tweak an experiment: 1 - Use the 3 different algorithms for Maximum Contiguous Subsequence Sum, you can copy the code from http://www.crazyforcode.com/maximum-sum-in-contiguous-subarray/ - Give credit. You will need to tweak the code to make it work. You can also simplify the code... 2 - Use StopWatch class from the book for timing 3 - Build a tester that: * Generates datasets randomly * Run all 3 algorithm with each generated dataset * You will need multiple test-runs to establish N such that value of T(N) are neither too short (Resolution is mili-second) or too long (Longer than ~ 1 day) * Initially loop multiplying the dataset size by 2 (Initial multiplier) every time 4 - Follow the analysis of experimental data from the book page 176. Plot the data using excel 5 - From this estimate a good starting N and increment such that your table will have at least 4 lines with all 3 results 6 - Run the test and repeat 10 times to obtain an average (you can test with other work-load present or computer idle) 7 - Build a table that shows N vs. average / minimum / maximum T(N) for all 3 algorithms 8 - Turn a professional looking report: a. describes the experiment b. include the code c. include a sample run d. explain the final set of numbers you used (starting size and multiplier and time cut-off) e. explain the findings f. estimate the constant factors for all 3 algorithms assuming aN-cube, bN-square, and cN. 9 - Turn in your code (.java) and the report via e-mail to [email protected]
- Host: GitHub
- URL: https://github.com/jiveyguy/big0time
- Owner: JiveyGuy
- Created: 2017-02-28T01:48:41.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-06T13:26:33.000Z (almost 8 years ago)
- Last Synced: 2024-10-15T03:52:19.174Z (2 months ago)
- Language: Java
- Size: 812 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
COSC2336 - Lab 3
Studdy the impact of O() on a problem solution and learn to design and tweak an experiment:
1 - Use the 3 different algorithms for Maximum Contiguous Subsequence Sum, you can copy the code from http://www.crazyforcode.com/maximum-sum-in-contiguous-subarray/ - Give credit. You will need to tweak the code to make it work. You can also simplify the code...
2 - Use StopWatch class from the book for timing
3 - Build a tester that:
* Generates datasets randomly
* Run all 3 algorithm with each generated dataset
* You will need multiple test-runs to establish N such that value of T(N) are neither too short (Resolution is mili-second) or too long (Longer than ~ 1 day)
* Initially loop multiplying the dataset size by 2 (Initial multiplier) every time
4 - Follow the analysis of experimental data from the book page 176. Plot the data using excel
5 - From this estimate a good starting N and increment such that your table will have at least 4 lines with all 3 results
6 - Run the test and repeat 10 times to obtain an average (you can test with other work-load present or computer idle)
7 - Build a table that shows N vs. average / minimum / maximum T(N) for all 3 algorithms
8 - Turn a professional looking report:
a. describes the experiment
b. include the code
c. include a sample run
d. explain the final set of numbers you used (starting size and multiplier and time cut-off)
e. explain the findings
f. estimate the constant factors for all 3 algorithms assuming aN-cube, bN-square, and cN.
9 - Turn in your code (.java) and the report via e-mail to [email protected]