Git Product home page Git Product logo

apd-project1's Introduction

Homework 1 - APD

Daraban Albert-Timotei

The first thing I have done is to measure the time each of the 5 steps in the sequential solution take on the biggest test available.

The results in reverse order were:

  • Rescale: 1s-2s
  • March the squares: ~0.01s
  • Write output: ~0.005s
  • Sample the grid: ~0.001s
  • Initialize contour map: ~0.0001s

After looking at the code, I have discovered that "rescale," "march," and "sample" could be easily parallelized using the "start-end" technique learned at the lab.

Writing the output would be too hard (maybe impossible; I am not sure) to share between threads, and even if I did that, it wouldn't help because the bottleneck is in the operating system, which performs the actual writing to the disk (needs citation).

Initializing the contour map is a constant operation that takes far too little time to even consider sharing the load between threads.

apd-project1's People

Contributors

earthbert 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.