Distributed computation in networked systems