Content area

Abstract

Programming is a cornerstone of modern society, yet its cognitive and neural basis remains poorly understood. In this study, we test the hypothesis that programming "recycles" pre-existing neural mechanisms and representations in fronto-parietal reasoning networks. Using fMRI, we scanned programming-naive undergraduates (n=22) before (PRE) and after (POST) an introductory Python course. During the PRE scan, participants viewed pseudocode (plain English descriptions of algorithms), and during the POST scan, they read Python code. We found that a left-lateralized fronto-parietal network, previously implicated in programming experts, distinguished between "for" loops and "if" conditionals across both pseudocode and Python code. Representational similarity analysis revealed consistent representations of algorithms across formats (code/pseudocode) and learning stages. Furthermore, such representations encode abstract meanings rather than superficial features. Our findings demonstrate that programming not only recycles pre-existing neural resources evolved for logical reasoning, but the recycling takes place rapidly with only a single semester of training.

Competing Interest Statement

The authors have declared no competing interest.

Footnotes

* https://osf.io/2ncfm/

Details

1009240
Title
Rapid "recycling" of logical algorithm representations in fronto-parietal reasoning systems following computer programming instructions
Publication title
bioRxiv; Cold Spring Harbor
Publication year
2025
Publication date
Jan 10, 2025
Section
New Results
Publisher
Cold Spring Harbor Laboratory Press
Source
BioRxiv
Place of publication
Cold Spring Harbor
Country of publication
United States
University/institution
Cold Spring Harbor Laboratory Press
Publication subject
ISSN
2692-8205
Source type
Working Paper
Language of publication
English
Document type
Working Paper
ProQuest document ID
3153960550
Document URL
https://www.proquest.com/working-papers/rapid-recycling-logical-algorithm-representations/docview/3153960550/se-2?accountid=208611
Copyright
© 2025. This article is published under http://creativecommons.org/licenses/by-nc-nd/4.0/ (“the License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.
Last updated
2025-01-11
Database
ProQuest One Academic