Essays on resource allocation and mechanism design