Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 16 pages
Exam (elaborations)

COMP 212-DISTRIBUTED SYSTEMS EXAM QUESTIONS WITH 100%VERIFIED ANSWERS

Document preview thumbnail
Preview 3 out of 16 pages

COMP 212-DISTRIBUTED SYSTEMS EXAM QUESTIONS WITH 100%VERIFIED ANSWERS

Content preview

COMP 212-DISTRIBUTED SYSTEMS
EXAM QUESTIONS WITH
100%VERIFIED ANSWERS
How is a spanning tree of a network given? - ✔✔• Network G = (V, E)
• Eʹ ⊆ E specifies a spanning tree T = (V, Eʹ)


• Root: u0 (leader)
• Processors know T in a distributed way
• Each u "i" knows: a parent "i", a set children


Time complexity of spanning tree broadcasting - ✔✔Depth d of T



Communication complexity of spanning tree broadcasting - ✔✔n - 1 messages



Time complexity of spanning tree construction - ✔✔O(D) where D is the maximum
distance of a u "i" from u "0" in G
Communication complexity of spanning tree construction - ✔✔-size of messages:
sends message M and an id


-O(m) messages: where m denotes the # of edges of G


Does leader election work on a directed ring with identical processors? - ✔✔No



Does leader election work on a directed ring with unique id processes? - ✔✔Yes



LCR Algorithm - ✔✔Used when we know the unique ids of a network.


Uses only transmission and comparison of ids to select a leader


Time complexity of LCR - ✔✔N rounds

,Communication complexity of LCR - ✔✔- size of messages: encoding in bits of
the maximum id
-O(n^2) messages in worst case



Strongly connected graph - ✔✔A directed graph is strongly connected if there is a path
from every node to every other node.


Floodmax Algorithm - ✔✔Used when we know the unique ids and diameter of the network


Uses transmissions, comparison,and storage of ids


Time complexity of Floodmax - ✔✔D + 1 rounds (or D depending on the round model)

Communication complexity of Floodmax - ✔✔-size of messages: encoding in bits of
the maximum id


-D*m messages always (m is the number of directed links in the network)


IP Protocol - ✔✔set of rules used to pass packets from one host to another (network protocol)



TCP Protocol - ✔✔-Connection Oriented Protocol
-Requires recipient to send acknowledgment of each packet received.
-Packets that don't make it are resent
-Ensures data is delivered reliably
(Transport protocol)



HTTP and FTP - ✔✔The Hypertext Transfer Protocol (HTTP) is used to identify
resources and transfer content on the web. Some web pages use the HTTPS protocol, which
adds an additional layer of encryption to make data transfers more secure. The File Transfer
Protocol (FTP) can also be used to transfer data between computers on a network.

, (application protocols)



TCP vs UDP - ✔✔TCP is a connection oriented protocol where UDP is a connection-less.
TCP is suitable for connections the require high reliability and transmission time is less critical.
TCP establishes a connection with counterpart where UDP doesn't have any guarantee that the
packets sent made it to the destination. TCP uses error checking, where UDP does not.



What is a socket? - ✔✔one endpoint of a two-way communication link between two
programs running on the network



Explain how sockets are used - ✔✔1. Processes bind sockets to a connection and read/write
to them.
2. Sockets are bound to a port number so that the TCP layer can identify the application that data
is destined to be sent.


What is a remote procedure call (RPC)? - ✔✔A method that allows programs to
call procedures located on other machines



RPC vs socket-programming - ✔✔RPCs remove the need for the Distributed Systems
programmer to worry about all the details of network programming. Makes "remote"
procedure calls look and work like a "local" procedure call (achieves transparency)



HTTP/HTTPS - ✔✔Hypertext Transfer Protocol. A protocol for controlling how Web
browsers and servers pass information back and forth over the Internet. (Uses the client-server
model)


HTTPS uses encryption.



Remote Method Invocation (RMI) - ✔✔allows a Java program on one machine to invoke a
method on a remote object



What are some resources that are used in DS? - ✔✔Computers, computing power,
data, printers, sensors, mobile devices

Document information

Uploaded on
May 1, 2025
Number of pages
16
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$13.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
QUINTER
3.6
(73)
Sold
413
Followers
105
Items
40085
Last sold
6 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions