GithubHelp home page GithubHelp logo

cs221hw11's Introduction

cs221hw11

To run, use make. I used mostly the same parameters Eitan used; num_iter=9,000,000; pop_size=1000; mut_rate=0.3; nthreads=4 (because my laptop has not quite so many cores as Eitan's desktop). With no parallelism (I.E. the code in the hw10 solution with num_iter = 9 million instead of 2 million), it takes 57.7 seconds. The parallelized version takes 26.5 seconds. My GA does not beat the provided shortest.tsv. The shortest.tsv in this submission is the result of an nthreads=3 execution which lasted 26.181 seconds.

Threads 1 2 4 8 (more threads than I have cores on my laptop) 1-deme parallelism (extracredit) 57.5s7590 42.2s5964 42.0s7170 51.4s6740 n-deme parallelism 62.5s7023 30.4s6386 26.5s/5876 29.1s5640 (Format is runtime in seconds, result in arbitrary distance units).

cs221hw11's People

Contributors

3141592654 avatar

Watchers

 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.