ContentsFoundations to FrontierBezhig

graduate_code/starters/distributed.py

All lab code. Download this file.

# Exercise scaffold. Reference implementation is in a separate directory.
"""G08: bounded combinatorial checks, not a production storage protocol."""
from dataclasses import dataclass
from itertools import combinations

def disjoint_quorums(n, read_size, write_size):
    raise NotImplementedError('Implement this contract from the book.')

@dataclass
class LogicalClock:
    value: int = 0

    def __post_init__(self):
        raise NotImplementedError('Implement this contract from the book.')

    def tick(self):
        raise NotImplementedError('Implement this contract from the book.')

    def receive(self, timestamp):
        raise NotImplementedError('Implement this contract from the book.')

def unsafe_register_trace():
    """Deliberately violates linearizable read behavior; never use as storage."""
    raise NotImplementedError('Implement this contract from the book.')