19. A computer implemented method for dynamic task selection (executive control) suitable for mapping external inputs and internal goals toward actions that solve problems or elicit external rewards, the method comprising an act of causing a processor to execute instructions encoded on a memory, such that upon execution, the processor perform operations of: receiving sensory inputs; transforming the sensory inputs into clusters of spatial patterns; transforming the clusters of spatial patterns into a spatial schema; encoding transitions between the spatial schema; clustering the spatial schema and encoded spatial schema transitions into a spatio-temporal schema; combining the spatial schema with the spatio-temporal schema to create a bimodal spatio-temporal schema; receiving a reward input and a punishment input, wherein the reward input and the punishment input reflect a current state of an external environment; computing an emotional state and a motivational state from the sensory inputs, the reward input, and the punishment input; combining the bimodal spatio-temporal schema with the reward input, the punishment input, the emotional state, and the motivational state to create an external/internal schema (EXIN schema), wherein the EXIN schema provides a compressed representation assessing emotions, motivations, and rewards; combining the EXIN schema with the bimodal spatio-temporal schema to create a multimodal spatio-temporal schema, wherein the multimodal spatio-temporal schema serves as an episodic memory that can be replayed by the computer implemented method; receiving structures representing a plurality of elements of a motor system; and combining the multimodal spatio-temporal schema with the motor system structures and the EXIN schema to create a motor schema.
19. A computer implemented method for dynamic task selection (executive control) suitable for mapping external inputs and internal goals toward actions that solve problems or elicit external rewards, the method comprising an act of causing a processor to execute instructions encoded on a memory, such that upon execution, the processor perform operations of: receiving sensory inputs; transforming the sensory inputs into clusters of spatial patterns; transforming the clusters of spatial patterns into a spatial schema; encoding transitions between the spatial schema; clustering the spatial schema and encoded spatial schema transitions into a spatio-temporal schema; combining the spatial schema with the spatio-temporal schema to create a bimodal spatio-temporal schema; receiving a reward input and a punishment input, wherein the reward input and the punishment input reflect a current state of an external environment; computing an emotional state and a motivational state from the sensory inputs, the reward input, and the punishment input; combining the bimodal spatio-temporal schema with the reward input, the punishment input, the emotional state, and the motivational state to create an external/internal schema (EXIN schema), wherein the EXIN schema provides a compressed representation assessing emotions, motivations, and rewards; combining the EXIN schema with the bimodal spatio-temporal schema to create a multimodal spatio-temporal schema, wherein the multimodal spatio-temporal schema serves as an episodic memory that can be replayed by the computer implemented method; receiving structures representing a plurality of elements of a motor system; and combining the multimodal spatio-temporal schema with the motor system structures and the EXIN schema to create a motor schema. 33. A computer implemented method for dynamic task selection as set forth in claim 19 , wherein the reward input is further used as an enticing reset signal when the punishment input has a high value, whereby the enticing reset signal forces the computer implemented method to deselect the EXIN schemas and continue creating new EXIN schemas despite the high value of the punishment input.