bioRxivNeurosciencePreprint
Rapid "recycling" of logical algorithm representations in fronto-parietal reasoning systems following computer programming instructions
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.
- Citations
- 0
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Computer code comprehension shares neural resources with formal logical inference in the fronto-parietal network
Yunfei Liu, Judy Sein Kim, … Marina Bedny·eLifePeer-reviewed·Dec 14, 2020
- Reasoning with programs in replay
Sebastijan Veselič, Nour Mohsen, … Zeb L. Kurth-Nelson·bioRxiv·Oct 10, 2025
- Comprehension of computer code relies primarily on domain-general executive brain regions
Anna Aleksandrovna Ivanova, Shashank Srikant, … Evelina G. Fedorenko·eLifePeer-reviewed·Dec 14, 2020
- Expert programmers have fine-tuned cortical representations of source code
Yoshiharu Ikutani, Takatomi Kubo, … Shinji Nishimoto·eNeuroPeer-reviewed·Dec 14, 2020
- Frontoparietal action-oriented codes support novel instruction implementation
Carlos González‐García, Silvia Formica, … Marcel Braß·NeuroImagePeer-reviewed·Nov 30, 2020
- Distributed Code for Semantic Relations Predicts Neural Similarity
Jeffrey N. Chiang, Yujia Peng, … Martin Max Monti·bioRxiv·Jun 12, 2019