This study intends to determine whether similarities of the functioning of the cerebral cortex exist, modeled as a graph, during the execution of mathematical tasks and programming related tasks. The comparison is done using network parameters and during the development of computer programming tasks and the solution of first-order algebraic equations. For that purpose, electroencephalographic recordings (EEG) were made with a volunteer group of 16 students of systems engineering of Universidad del Norte in Colombia, while they were performing computer programming tasks and solving first-order algebraic equations with three levels of difficulty. Then, based on the Synchronization Likelihood method, graph models of functional cortical networks were developed, whose parameters of Small-Worldness (SWN), global(Eg) and local (El) efficiency were compared between both types of tasks. From this study, it can be highlighted, first, the novelty of studying cortical function during the solution of algebraic equations and during programming tasks; second, significant differences between both types of tasks observed only in the delta and theta bands. Likewise, the differences between simpler mathematical tasks with the other levels in both types of tasks; third, the Brodmann areas 21 and 42, associated with auditory sensory processing, can be considered as differentiating elements of programming tasks; as well as Brodmann area 8, during equation solving.