Organic chemistry is basically doing constraint solving. E.g. you know a lot of different reactions (e.g. replace Cl by OH, add double bond), but some reactions cannot be done depending on the structure of the intermediates.
I have a bachelor in chemistry and ochem was one of the most painful classes based on the amount of things you must know by heart for synthesis