Theoretical Analysis And Efficient Algorithms For Crowdsourcing