Statistical Mechanics of Problems in Transcription Regulation