Skip to content

Instantly share code, notes, and snippets.

class OpCosts:
def __init__(self, select, add, double):
self.select = select
self.add = add
self.double = double
def estimate_windowed(B, w, n, costs: OpCosts):
c_prepare_table = (2**w) * costs.add