# prize35-12 Exercise 2: planting plus natural spread when restoring woodland def years_to_half(plant, spread=0.05, start=0.05, target=0.5, limit=200): cover = start for year in range(1, limit + 1): cover = cover + plant + spread * cover * (1 - cover) if cover >= target: return year return None print("planting per year years to reach 50% cover") for p in (0.0, 0.01, 0.02, 0.04, 0.08): y = years_to_half(p) print(f"{p * 100:15.0f}% {y if y else 'more than 200'}") print("natural spread only, starting from different cover:") for s in (0.02, 0.05, 0.10, 0.20): print(f" start {s * 100:3.0f}% {years_to_half(0.0, start=s)} years") # Output: # planting per year years to reach 50% cover # 0% 60 # 1% 25 # 2% 16 # 4% 10 # 8% 6 # natural spread only, starting from different cover: # start 2% 80 years # start 5% 60 years # start 10% 45 years # start 20% 28 years # Reading it: natural spread alone works, but slowly from a low start, because a small woodland has few seed sources. # Planting early saves the most time, which is why restoration projects often begin with planting and then let nature take over.