Reinforcement and supervised learning for combinatorial problems in electronics design automation