Resource Management In Wireless Networks And The Smart Power Grid.