The Complexity of Data-Driven Norm Synthesis and Revision