Both have rules to make the optimal choice under a circumstance. Both vary according to the context they are applicable to, Both are thought to be objective, not subjective, existence. Both contain sets of rules applied in quite different conditions.