5
From Sequences to Arrays
When you ask, “What value comes next?” you’re making an assumption that the values are arranged in one dimension, along a line. One value follows another in a sequence, such that there’s only one way to step from one item to the next. But we live in a world with more than one dimension, and it’s sometimes helpful to use more than one dimension to organize information.
For example, an array is a two-dimensional object, a table of values organized in rows and columns. We can still look for patterns in an array of numbers, but now the patterns might show up as we move from row to row, from column to column, or along diagonals. ...
Get Math Hacks for Scratch now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.