Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with generating numbers #3

Closed
Neo-Hao opened this issue Nov 23, 2015 · 3 comments
Closed

Problem with generating numbers #3

Neo-Hao opened this issue Nov 23, 2015 · 3 comments

Comments

@Neo-Hao
Copy link
Collaborator

Neo-Hao commented Nov 23, 2015

Did you test on your machine as

./DataGenerator 2
./DataGenerator 3

I pulled the latest version, but somehow still have the same problem as yesterday: merge and quick sort finish instantly but generate exact the same comparison number for 100 times.

@montycheese
Copy link
Owner

Works I've run multiple times. Have you tried compiling and cleaning with the make file?

@montycheese
Copy link
Owner

Montanas-MacBook-Pro:project-3-CSCI-2720 montanawong$ ./DataGenerator 3
Montanas-MacBook-Pro:project-3-CSCI-2720 montanawong$ ls
DataGenerator README.md test
DataGenerator.cpp plot test.cpp
Makefile sort test.cpp~
Makefile~ sort.cpp
Quick.txt sortFunction.h
Montanas-MacBook-Pro:project-3-CSCI-2720 montanawong$ cat Quick.txt
630 1560 2538 3668 4777 5976 7054 8512 9724 10932 12315 13687 14925 16189 17839 19091 20554 22088 23516 24977 26332 27718 29161 30814 31866 33208 35772 36525 37833 40025 41422 42372 44226 45607 47212 49223 50122 51520 53188 55717 56883 58063 59921 61306 62445 64115 66220 67509 68693 71539 73606 74442 75606 77741 79636 81074 82935 84128 85621 87871 88818 90672 91598 94082 95287 96575 98999 101217 104547 104225 105979 107901 109039 111522 112951 114542 116327 117671 119696 120931 122259 124855 127791 128162 128741 131361 133031 135246 136162 139347 138886 141794 143371 144852 146321 147862 151552 151692 154420 156279 Montanas-MacBook-Pro:project-3-CSCI-2720 montanawong$ make clean

@Neo-Hao
Copy link
Collaborator Author

Neo-Hao commented Nov 23, 2015

Your are right. It works! I will include the plots in report now.

@Neo-Hao Neo-Hao closed this as completed Nov 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants