Resource Allocation in Nanocommunication Networks and Online Service Platforms.