Giter VIP home page Giter VIP logo

project-3-csci-2720's People

Contributors

montycheese avatar neo-hao avatar

Watchers

 avatar  avatar

project-3-csci-2720's Issues

Run DataGenerator again on Nike

I asked Karen again today; she said that we have to use the required data scale. I have changed the scale back as required.

Could you please compile DataGenerator.cpp and run the following commands on Nike again?

./DataGenerator 1
./DataGenerator 2
./DataGenerator 3

Three txt files will be generated. I will remake the plots as soon as you push the newly generated txt files to Github.

Thanks.

Finding a "c" value to satisfy our big O theoretical bound

In the project instructions it asks:

"For merge sort and quick sort, the analysis process is essentially the same but you will use the function T(N) = c N lg N for the theoretical curve instead. Identify the values of c for merge sort and quick sort from your experimentation. Include those and their theoretical running time curve plots in your report."

I'm not sure how to derive this using R. Can you find those "c" values? She mentioned it would be as easy as trying arbitrary values until the upper-bound is satisfiable. I can add those to the report when we get them.

Problem with generating numbers

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.

DataGenerator doesn't run on quick and merge sort

DataGenerator is supposed to run as the followings, and a txt file containing the comparison time should be generated:

insertion sort

./DataGenerator 1

merge sort

./DataGenerator 2

quick sort

./DataGenerator 3

When I run DataGenerator on merge and quick sorting, a txt file is still generated. However, the comparison times are not corrected. The generated numbers are all the same. Could you please check your functions and test them using DataGenerator?

BTW, mergeSortOutput should have the function type as int and cmpNumber as int.

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.