Unit 8 - Vocabulary Flashcards
0-indexed language
A programming language where arrays and other data structures start counting from 0 instead of 1. In these languages, the first element is accessed with an index of 0.
2D Arrays
Data structures that store values in a grid-like format with rows and columns. They allow for the organization and manipulation of data in a two-dimensional manner.
Array
A fixed-size collection of elements of the same type stored in contiguous memory locations. It allows efficient access to individual elements using an index.
ArrayIndexOutOfBoundsException
An exception is an exception that occurs when trying to access an invalid index position in an array. It is thrown to indicate that the index used to access an array is either negative or greater than or equal to the size of the array.
ArrayList
A dynamic data structure that allows you to store and manipulate collections of objects. Unlike arrays, ArrayLists can grow or shrink dynamically as needed.
Building Computational Thinking
Refers to developing problem-solving skills and logical reasoning abilities through programming and computer science concepts.
Double-index notation
A way of representing elements in a two-dimensional array using two indices, one for the row and one for the column. It allows easy access to specific elements within the array.
Graphical Representation
Involves using visual elements such as charts, graphs, or diagrams to present information or data visually.
Grid
A two-dimensional arrangement of cells or elements organized in rows and columns.
Initialize 2D Arrays
Means setting up or creating a two-dimensional array with initial values before using it in a program.
Initializing 2D Arrays
Refers to the process of declaring and assigning values to a two-dimensional array. It involves specifying the size of the array and providing initial values for each element.
Inner Array
An inner array refers to an array that is contained within another array.
Practice with Indices and Values
This term refers to the process of working with indices and values in computer programming. Indices are used to access specific elements within a data structure, such as an array or a string, while values represent the actual data stored at those indices.
Length
The length refers to the number of elements in an array or the size of a string.
Manipulate
Refers to the process of changing or altering data in a program. It involves modifying variables, arrays, or objects to achieve a desired outcome.
Nested Array
An array that contains other arrays as its elements. It allows for the creation of multi-dimensional data structures.
Nested For Loops
A way to repeat a set of instructions multiple times within another loop. It allows you to iterate over elements in a multi-dimensional data structure, such as a 2D array.
Non-rectangular Array
An array where each row can have a different number of columns.
Outer Array
An outer array is an array that contains other arrays as its elements.
Primitive Type Values
Refer to basic data types in programming languages such as integers, floating-point numbers, characters, booleans, etc., which are not composed of smaller parts.
Representations of 2D Arrays
Refer to different ways in which two-dimensional arrays can be visualized or stored in memory. There are multiple representations available, such as using nested loops, using matrices, or using lists of lists.
Representing 2D Arrays
Refers to the process of storing and accessing data in a two-dimensional grid-like structure. It allows for efficient manipulation and organization of data that has both rows and columns.
Rows
Refer to the horizontal lines in a table or grid that contain data. They represent individual records or entries in a dataset.
Traversing 2D Arrays
Refers to the process of accessing and examining each element in a two-dimensional array. It involves iterating through the rows and columns of the array to perform operations on each element.
2D Array Algorithms
Specific procedures or sets of instructions designed to solve problems involving two-dimensional arrays. These algorithms utilize the structure and properties of 2D arrays to perform operations efficiently.
Column-Major Order
A way of storing elements in memory where they are arranged sequentially by columns. Each column is stored one after another.