ContentsFoundations to FrontierBezhig

graduate_code/starters/network.py

All lab code. Download this file.

# Exercise scaffold. Reference implementation is in a separate directory.
"""G07: offline prefix lookup and a one-server finite-capacity FIFO trace."""
from collections import deque
import ipaddress
import math

def route(address, routes):
    raise NotImplementedError('Implement this contract from the book.')

def queue_trace(arrivals, service=1.0, capacity=3):
    raise NotImplementedError('Implement this contract from the book.')