RESOURCE ALLOCATION FOR WIRELESS RELAY NETWORKS