Before revision:  Assuming that the number of specified response patterns does not exceed the number of input synapses, we analytically calculate  all feedforward and recurrent connectivity matrices that can generate the specified responses from the network inputs.
After revision:  Assuming that the number of specified response patterns does not exceed the number of input synapses, we analytically calculate the solution space of all feedforward and recurrent connectivity matrices that can generate the specified responses from the network inputs.