An algorithm for learning without external supervision and its application to learning control systems | Synapse