Fast counting and sampling for ferromagnetic two-spin systems | Digital Library | PAMCET | PAMCET