Develop data structures - chord system

Assignment Help C/C++ Programming
Reference no: EM13240228

The Chord system is a structured peer-to-peer network architecture realizing a scalable distributed hash table. In Chord, the peers are organized as a ring. A position within Chord which is held by a computing node is called an index node or simply a peer. Each index node has a finger table, and, in addition, holds any data items associated with its own key value and any other data items associated with keys larger than the previous index node in the Chord ring.You may need to study the lecture notes, the relevant paragraphs in the text book, and relevant internet sources in order to acquire the level of understanding of CHORD required for this assignment. Commence the work on this assignment once you are confident to have understood how CHORD works.

Your task is to simulate the Chord system on a single computer as a single (non-parallelized, not multi-threaded) process. We will keep this task as simple as possible. The main objectives are:

• to understand how the nodes in Chord communicate.
• to understand how nodes are managed (added/removed) from the system.
• to understand the effects of adding and removal of index nodes.
• to understand how the finger table is computed and maintained.
• to understand how data distribution takes place in Chord.
• to understand how searching is done efficiently in Chord.
• to understand the concept of scalable code.

To keep the task as simple as possible, you are to write a single-threaded simulation (i.e. no additional threads are to be created during runtime). Follow the following guidelines:

Develop data structures which are suitable to hold required information for each peer in a CHORD system. Note that index nodes can hold local information only (I.e, an index nodes never knows of all the other index nodes).

Remember that your implementation is to simulate a distributed system. Do not make use of any global variables!

Attachment:- assn.zip

Reference no: EM13240228

Questions Cloud

Find the new shutter speed od camera : A camera takes a perfectly exposed picture when the lens diaphragm is set to f/4 and the shutter speed is 1/250 s, what should the new shutter speed be so that the exposure is still correct
Emperor’s shihuangdi elaborate tomb : Explain whether you think the emperor’s Shihuangdi elaborate tomb was motivated by power or religious beliefs.
Fredrick douglass an american slave defend : "In the long run, the opressor is also a victim" (Howard Zinn). Agree or disagree with this quotation using at least two specific exaples to defend your stance. Which is better book on race in america richards wright native son or fredrick douglass a..
Find the potential everywhere inside the box : A cubical box with sides of length a#consists of five metal plates which are welded together and grounded, Find the potential everywhere inside the box
Develop data structures - chord system : Develop data structures which are suitable to hold required information for each peer in a CHORD system. Note that index nodes can hold local information only
How far should she stand from the washington monument : A student has built a 20-cm-long pinhole camera for a science fair project. She wants to photograph the Washington Monument, How far should she stand from the Washington Monument
Compare an aspect of the tomb of emperor shihuangdi : Compare an aspect of the tomb of Emperor Shihuangdi with the burial tombs of other cultures, such as Egypt or Mesopotamia.
Determine exposure time should be used with camera b : Camera A has a lens with an aperture diameter of 8.30mm, What exposure time should be used with camera B in photographing the same object with the same film if this camera has a lens with an aperture diameter of 23.5mm
Loyalists-washington’s troops trapped cornwallis’s army : One British principle of government valued by the American colonists was the...? In late summer of 1781, Washington’s troops trapped Cornwallis’s army at..? Which of the following describes Loyalists?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Program that stores a series of numbers in a binary tree

Write a program that stores a series of numbers in a binary tree

  Write a program that will be used to gather statistical data

Write a program that will be used to gather statistical data about the number of movies

  We base our need to implement composition upon

What criterion, or criteria, should be used to include objects of a class as data members of another class? In other words, what should we base our need to implement composition upon?

  Recursive function

What is the result of the following recursive function when called with mm(10)? Write out the execution trace of this call to mm(10).

  Algorithm to determine which items to take to max weight

Write an algorithm to determine which items to take to maximize the weight of his loot bag. He cannot take a fraction of an item and each item must be taken, or left behind. Loot bag size is Z and and the input is an array of item wieghts as integers..

  Prompts the user to enter the mass of a person

Write a program that prompts the user to enter the mass of a person in kilograms and outputs the equivalent weight in pounds. Output both the mass and the weight rounded to two decimal places

  Define a class for a type called fraction

Define a class for a type called Fraction. This class is used to represent a ratio of two integers. Include mutator functions that allow the user to set the numerator and the denominator.

  Floating point values into an array

Write a program that allows a user to enter 10 floating point values into an array. Then, in a loop, the program should prompt the user for a desired precision and subsequently display each value to the correct precision.

  Create a program that maintains the required book catalog

Create a program that maintains the required book catalog for the circulation desk of a library.

  Grocery store program

This program draws upon several concepts that were covered in CptS 121 and should serve as a good refresher for CptS 122. Our store, Cougar Mart, maintains its inventory in a text file. Not being very tech savvy, the owner of Cougar Mart needs you to..

  Draw a two-dimensional house seen from the front

Draw a two-dimensional house seen from the front, the way a child would: with a door, two windows, and a roof with a chimney. Feel free to add details; mabe have "smoke" come out of the chimney.

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd