Probability Engine · CSC462

Distributed System (BSc CSIT, CSC462): the questions likely to come

25 analyzed questions from 7 past papers (2074-2081), grouped by syllabus unit — each with its probability, how often it's been asked, and where to study the answer.

7
Papers analyzed
2074-2081
25
Analyzed questions
across 8 syllabus units
5
Very likely units
high-probability topics
5
Units = 80% of marks
study these first
Model answers for this subject are being written. Every question links to its original paper so you can study from the source meanwhile.
Pick a unit
U6 · Q1/9 · 208010 marks
Synchronization

What are election algorithms in distributed systems? Explain the Bully algorithm and the Ring algorithm with suitable examples.

44%
Possible to appearAppeared in 3 of the last 3 board papers
Seen in
How well do you know this?rating moves you on
MODEL ANSWERU6 · 10 marks

Election Algorithms

An election algorithm chooses a single process to act as coordinator (e.g., the central lock manager, sequencer or master). Any process may start an election; when it finishes every non-crashed process must agree on the new coordinator, usually the one with the highest process id (or priority). Elections are needed after the current coordinator crashes.

1. Bully Algorithm (Garcia-Molina)

Assumes each process knows the ids of all others and can message them; uses timeouts to detect crashes.

When a process P notices the coordinator has failed (or it just recovered):

  1. P sends an ELECTION message to all processes with higher ids.
  2. If no higher process answers within the timeout, P wins and sends a COORDINATOR message to all lower processes announcing itself.
  3. If a higher process answers with OK, P drops out; the higher process now holds its own election.
  4. Eventually the highest-id live process becomes coordinator and announces it.

Example: processes 1..7, with 7 the old coordinator. 7 crashes; 4 notices and sends ELECTION to 5,6,7. 5 and 6 reply OK and hold their own elections. 6 sends ELECTION to 7 (no reply) and finds itself highest, so 6 announces itself coordinator to all. The highest survivor 'bullies' the rest — hence the name.

  • Worst-case messages: O(N2)O(N^2).

2. Ring Algorithm

Processes form a logical ring; each knows its successor. No token is used.

  1. A process that detects coordinator failure builds an ELECTION message containing its own id and sends it to its successor (skipping dead nodes).
  2. Each process appends its id and forwards the message around the ring.
  3. When the message returns to the initiator (it sees its own id in the list), the highest id in the list is the new coordinator.
  4. The initiator circulates a COORDINATOR message naming the winner so all processes update.

Example: ring 1→2→3→4→5→6→7→1, coordinator 7 crashes. Process 2 starts an election with {2}; it becomes {2,3,4,5,6} as it travels (7 skipped) and returns to 2. Max = 6, so 6 is the new coordinator, announced via a second pass.

  • Messages: about 2N2N (NN for the election list + NN for the announcement).

Comparison

BullyRing
Topology knowledgeall process idssuccessor only
Messages (worst)O(N2)O(N^2)2N\approx 2N
Resulthighest-id live processhighest id in ring list

Both guarantee that all live processes agree on the same coordinator after the election completes.

AI-generated answer · unverifiedView in 2080 paper →
U6 · Question 1 of 9
Question Priority · U6ranked by appearance likelihood — study top-down

Synchronization

Analyzed next55%
1
★ TOP PICK

What are election algorithms in distributed systems? Explain the Bully algorithm and the Ring algorithm with suitable examples.

10 marksSEEN IN
44%
2

What is distributed mutual exclusion? Explain the centralized, token-ring and Ricart-Agrawala (distributed) algorithms, comparing them in terms of message complexity and fault tolerance.

10 marksSEEN IN
42%
3

Explain clock synchronization in distributed systems. Discuss Lamport's logical clocks and vector clocks with examples, and describe how the happened-before relation orders events.

10 marksSEEN IN
40%
4

Explain Lamport's logical clock with an example.

5 marksSEEN IN
55%
5

Differentiate between centralized and distributed mutual exclusion algorithms.

5 marksSEEN IN
55%
6

Explain distributed deadlock detection. What is a wait-for graph?

5 marksSEEN IN
55%
7

Explain the Bully algorithm for electing a coordinator.

5 marksSEEN IN
55%
8

Explain Cristian's algorithm for physical clock synchronization.

5 marksSEEN IN
55%
9

What is a vector clock? How does it improve over Lamport's logical clock?

5 marksSEEN IN
44%
03The mock

Sit a probable paper

A full mock exam built from the most likely questions, mirroring the real paper's structure. Every slot is a real past question.

Most Probable Paper

Mirrors the real structure · 60 marks · based on 7 past papers

Section A: Long Answer QuestionsAttempt any TWO questions.
  1. 1.

    What are election algorithms in distributed systems? Explain the Bully algorithm and the Ring algorithm with suitable examples.

    [10 marks]
    SynchronizationVery likelyfrom 2080 paper →

    This question has recurred in 3 of 7 years; so far only in internal assessments, not the board; and its topic (Synchronization) appears in 100% of years.

  2. 2.

    What is distributed mutual exclusion? Explain the centralized, token-ring and Ricart-Agrawala (distributed) algorithms, comparing them in terms of message complexity and fault tolerance.

    [10 marks]
    SynchronizationVery likelyfrom 2080 paper →

    This question has recurred in 3 of 7 years; so far only in internal assessments, not the board; and its topic (Synchronization) appears in 100% of years.

  3. 3.

    Explain clock synchronization in distributed systems. Discuss Lamport's logical clocks and vector clocks with examples, and describe how the happened-before relation orders events.

    [10 marks]
    SynchronizationVery likelyfrom 2079 paper →

    This question has recurred in 3 of 7 years; so far only in internal assessments, not the board; and its topic (Synchronization) appears in 100% of years.

Section B: Short Answer QuestionsAttempt any EIGHT questions.
  1. 1.

    Explain Lamport's logical clock with an example.

    [5 marks]
    SynchronizationVery likelyfrom 2081 paper →

    This question has recurred in 4 of 7 years; so far only in internal assessments, not the board; and its topic (Synchronization) appears in 100% of years.

  2. 2.

    Differentiate between centralized and distributed mutual exclusion algorithms.

    [5 marks]
    SynchronizationVery likelyfrom 2081 paper →

    This question has recurred in 4 of 7 years; so far only in internal assessments, not the board; and its topic (Synchronization) appears in 100% of years.

  3. 3.

    Explain distributed deadlock detection. What is a wait-for graph?

    [5 marks]
    SynchronizationVery likelyfrom 2081 paper →

    This question has recurred in 4 of 7 years; so far only in internal assessments, not the board; and its topic (Synchronization) appears in 100% of years.

  4. 4.

    Explain the Bully algorithm for electing a coordinator.

    [5 marks]
    SynchronizationVery likelyfrom 2081 paper →

    This question has recurred in 4 of 7 years; so far only in internal assessments, not the board; and its topic (Synchronization) appears in 100% of years.

  5. 5.

    Explain Cristian's algorithm for physical clock synchronization.

    [5 marks]
    SynchronizationVery likelyfrom 2081 paper →

    This question has recurred in 4 of 7 years; so far only in internal assessments, not the board; and its topic (Synchronization) appears in 100% of years.

  6. 6.

    What is a distributed system? Explain the goals and characteristics of a distributed system.

    [5 marks]
    IntroductionVery likelyfrom 2081 paper →

    This question has recurred in 4 of 7 years; so far only in internal assessments, not the board; and its topic (Introduction) appears in 100% of years.

  7. 7.

    What are the different kinds of transparency in a distributed system?

    [5 marks]
    IntroductionVery likelyfrom 2081 paper →

    This question has recurred in 4 of 7 years; so far only in internal assessments, not the board; and its topic (Introduction) appears in 100% of years.

  8. 8.

    What is a Remote Procedure Call (RPC)? Explain its working with a diagram.

    [5 marks]
    CommunicationVery likelyfrom 2081 paper →

    This question has recurred in 4 of 7 years; so far only in internal assessments, not the board; and its topic (Communication) appears in 86% of years.

  9. 9.

    What is middleware? Explain its role in a distributed system.

    [5 marks]
    ArchitecturesVery likelyfrom 2081 paper →

    This question has recurred in 4 of 7 years; so far only in internal assessments, not the board; and its topic (Architectures) appears in 100% of years.

04The receipts

Behind the numbers

The raw evidence the predictions are computed from: marks per unit per year, syllabus weights, trends, and coverage.

Show the heatmap, topic table and coverage analysis

The receipt: marks per unit, per year

Each row is a syllabus unit, each column an exam year, each cell the marks that unit earned that year. Click any cell to see the actual questions behind it.

Marks:nonefew → many
2074
2075
2077
2078
2079
2080
2081
Total
U6Synchronization
205
U7Consistency and Replication
105
U1Introduction
55
U4Communication
50
U8Fault Tolerance
45
U2Architectures
35
U3Processes
15
U5Naming
15
#Syllabus unitProbabilityAppearedAvg marksSyllabus weightExam vs syllabusTrendQuestions
1U6SynchronizationVery likely100%29.313%6 lecture hrsOver-examinedexam 39% · syllabus 13%Steady9 recurring9 total
2U7Consistency and ReplicationLikely71%2111%5 lecture hrsOver-examinedexam 20% · syllabus 11%Steady5 recurring5 total
3U1IntroductionVery likely100%7.913%6 lecture hrsBalancedexam 10% · syllabus 13%Steady3 recurring3 total
4U4CommunicationVery likely86%8.316%7 lecture hrsUnder-examinedexam 10% · syllabus 16%Steady2 recurring2 total
5U8Fault ToleranceVery likely86%7.59%4 lecture hrsBalancedexam 9% · syllabus 9%Rising2 recurring2 total
6U2ArchitecturesVery likely100%513%6 lecture hrsUnder-examinedexam 7% · syllabus 13%Steady2 recurring2 total
7U3ProcessesPossible43%513%6 lecture hrsUnder-examinedexam 3% · syllabus 13%Steady1 recurring1 total
8U5NamingPossible43%511%5 lecture hrsUnder-examinedexam 3% · syllabus 11%Steady1 recurring1 total

Study smart, not hard

Drag the slider: studying the top 5 units in priority order covers ~88% of all observed marks.

  1. ~80% line

Lecture time vs exam marks

Where the exam pays more than the curriculum spends: ● lectures vs ● exam marks, as a share of the whole course. A long teal-leading bar = high-yield unit.

U6Synchronization
13% of lectures → 39% of markshigh yield
U7Consistency and Replication
11% of lectures → 20% of markshigh yield
U1Introduction
13% of lectures → 10% of marks
U4Communication
16% of lectures → 10% of markslow yield
U8Fault Tolerance
9% of lectures → 9% of marks
U2Architectures
13% of lectures → 7% of markslow yield
U3Processes
13% of lectures → 3% of markslow yield
U5Naming
11% of lectures → 3% of markslow yield

Topics are the official CSC462 syllabus units. Predictions are data-driven probabilities computed from 7 past papers (2074-2081) by mapping each real question to its syllabus unit. They indicate what has historically been likely, not guaranteed questions. Always study the full syllabus.