Coder Social home page Coder Social logo

final-project-internet-programming's Introduction

Final Project - Internet Programming

TCP server and client in multi-threading.

Server that handles algorithmic tasks, task set on matrices.

The client can choose between 4 main tasks:

  1. find all sccs in the graph (including diagonals)
  • input- 2D array of integers
  • output- all SCCs ,sorted by size of returned hashset. example-
  •          {1, 0, 0, 0, 1},
             {0, 0, 1, 0, 0},
             {0, 0, 1, 0, 0},
             {0, 0, 1, 0, 1},
             {0, 0, 1, 0, 1}
    
       output - [[(0,0)], [(0,4)], [(4,4), (3,4)], [(3,2), (2,2), (1,2), (4,2)]] 
    

  1. find all the shortest paths between two nodes
  • input- 2D array of integers
  • output- all the shortest paths between two nodes. example-
  •          {1, 0, 0, 0, 0},
             {0, 1, 1, 0, 0},
             {0, 1, 1, 0, 0},
             {0, 0, 1, 0, 0},
             {0, 0, 1, 0, 0}
    
              output from (0,0) to (4,2) will be:
              [[(0,0), (1,1), (2,1), (3,2), (4,2)], [(0,0), (1,1), (2,2), (3,2), (4,2)]]
    

(2.1) Asynchronously (2.2) in parallel


  1. find all submarines in matrix "submarine" must maintain the following rules:
    1. Minimum of two "1" vertically.
    1. Minimum of two "1" horizontally.
    1. There cannot be "1" diagonally unless arguments 1 and 2 are implied.
    1. The minimal distance between two submarines is at least one index("0").
  • input- 2D arrayof integers

  • output- number of proper submarines example-

  •           {1, 1, 0, 0, 1},
              {0, 0, 0, 0, 1},
              {0, 0, 1, 0, 0},
              {1, 0, 1, 0, 0},
              {1, 0, 1, 0, 1}
    
              output - 4
    

  1. find all lightest weight paths between two nodes (also support negative weights) (4.1) Asynchronously (4.2) in parallel
  • input- 2D array of integers
  • output -all the lightest weight paths between two nodes. exmaple-
  •           {100,100,100},
              {300,900,500},
              {100,100,100}
    
              output from (1,0) to (1,2) will be:
              [[(1,0),(0,1),(1,2)],[(1,0),(2,1),(1,2)]] , with weight 900 - it also includes diagonals.
    

final-project-internet-programming's People

Contributors

rammichaeli17 avatar sapirdaga1 avatar ozweiss 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.