Linear complexity algorithms for maximum throughput in radio networks and input queued switches | Synapse