Coder Social home page Coder Social logo

coursera-algo-theory-machine's Introduction

Introduction

This repo contains the source code which goes along with the Coursera course https://www.coursera.org/learn/cs-algorithms-theory-machines/. To build the project, simply run the command mvnw install from the base directory. This will automatically run all the tests and build the JAR.

Local Repository Creation For Coursera dependencies

Given that Coursera course JARs are not available in Maven, the easiest way to manage this external JAR in Maven is to install the JAR after downloading it locally in Maven and then copying the structure to your project directory. This coupled with tuning a few knobs in the Maven POM file allows us to use a project local directory as a repository. The command used was:

mvn install:install-file -Dfile=/location/of/my.jar -DgroupId=coursera -DartifactId=algs4 -Dversion=1.0.0 -Dpackaging=jar -DcreateChecksum=true

Executing Code

To execute a given class from the root project directory, just fire the command (replace class name and input files as required)

java -cp target\coursera-cs-algo-1.0-SNAPSHOT-jar-with-dependencies.jar net.sanjayts.coursera.wk1.WhiteFilter "src\main\resources\white4.txt"

java -cp target\coursera-cs-algo-1.0-SNAPSHOT-jar-with-dependencies.jar net.sanjayts.coursera.wk1.StringGenerator 5 5 abcdefghijklm

References

coursera-algo-theory-machine's People

Contributors

sanjayts avatar

Watchers

 avatar

Forkers

ssgantayat

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.