Resource Allocation In Communication, Quantization, And Localization