Giter Site home page Giter Site logo

dsaproj1's Introduction

AtWuuBernstein

A twitter-like distributed log. " The distributed system consists of N sites, each site corresponding to a single user. Every user “follows” all users. Initially, a follower should see all tweets from the users he or she follows. A user can “block” a follower; when that follower is blocked, the follower should not be able to view any of the user’s tweets (old or new). A user can also “unblock” a blocked follower, which once again allows the follower to view all of the user’s tweets. A tweet is a tuple, consisting of the following fields: • User: creator of the tweet • Message: the text of the tweet • Time: from the physical clock of the node where the tweet was created (you must account for different time zones). ... Each user can execute the following operations:

  1. tweet:createsanewtweet
  2. view : displays the timeline, i.e., the entire set of tweets (including all fields), sorted in descending order by the time field (most recent tweets appear first), excluding tweets that the user is blocked from seeing.
  3. block : blocks the specified username from viewing tweets of the user who issued the command.
  4. unblock : unblocks the specified username; allows the viewing of tweets of the user who issued the command. ... This implementation uses a configuration file that gives the IP addresses and ports that will be used for communication between all sites. ... A correct implementation of the algorithm will ensure that when a user views a tweet T in his or her timeline, the user also views all tweets that causally precede T that he has permission to view (is not blocked from viewing). " from http://www.cs.rpi.edu/~pattes3/dsa/DSA_Project1.pdf

dsaproj1's People

Contributors

umlore avatar uuqv avatar

Watchers

James Cloos avatar  avatar  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.