Efficient Algorithms for Public-Private Social Networks