Vector Programming Using Generative Recursion

06/27/2019
by   Marco T. Morazán, et al.
0

Vector programming is an important topic in many Introduction to Computer Science courses. Despite the importance of vectors, learning vector programming is a source of frustration for many students. Much of the frustration is rooted in discovering the source of bugs that are manifested as out-of-bounds indexing. The problem is that such bugs are, sometimes, rooted in incorrectly computing an index. Other times, however, these errors are rooted in mistaken reasoning about how to correctly process a vector. Unfortunately, either way, all too often beginners are left adrift to resolve indexing errors on their own. This article extends the work done on vector programming using vector intervals and structural recursion to using generative recursion. As for problems solved using structural recursion, vector intervals provide beginners with a useful framework for designing code that properly indexes vectors. This article presents the methodology and concrete examples that others may use to build their own CS1 modules involving vector programming using any programming language.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/14/2018

Vector Programming Using Structural Recursion

Vector programming is an important topic in many Introduction to Compute...
research
07/26/2022

Introduction to Functional Classes in CS1

Students introduced to programming using a design-based approach and a f...
research
05/04/2023

Designing Bugs or Doing Another Project: Effects on Secondary Students' Self-Beliefs in Computer Science

Debugging, finding and fixing bugs in code, is a heterogeneous process t...
research
03/10/2023

Visual Studio Code in Introductory Computer Science Course: An Experience Report

Involving integrated development environments (IDEs) in introductory-lev...
research
10/24/2017

First Programming Language: Visual or Textual?

In modern day society, the ability to code is a highly desirable skill. ...
research
08/28/2018

PyDraw: a GUI drawing generator based on Tkinter and its design concept

The emergence of GUI is a great progress in the history of computer scie...

Please sign up or login with your details

Forgot password? Click here to reset