1/16
Vocabulary and concepts covering Java array basics, initialization, searching (Linear/Binary), sorting (Bubble/Selection), and two-dimensional arrays.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Array
An object which contains a finite number of values of the same data type and acts as a container for multiple values of a homogeneous data type under one name.
Index of an array
The location of a value in a particular array; in Java, indexing begins at 0.
Homogeneous data
Values of the same data type; an array must store only this type of data, and values of different types cannot be assigned to the same array.
Array Declaration
The process of creating a reference for an array by specifying the data type and name, such as int[] numbers; or int numbers[];, without yet allocating memory.
Array Initialisation
The process of telling the compiler how much memory space is going to be occupied by the array, determined by the number of elements and the data type.
new Keyword
A keyword used to initialize an array and reserve memory to store a specific number of values, such as in float[] prices = new float[5];.
Searching
The process of finding the index of an element in an array or checking if a particular value exists within the array.
Linear Search
Also called sequential search, it is a method where each element in the array is compared with the value to be searched in a sequential manner.
length Method
A built-in Java property that returns the number of elements (the size) of a given array.
Binary Search
A fast searching algorithm performed on a sorted array that works by dividing the search range in half during each iteration by comparing the target with the middle element.
Sorting
The process of arranging data elements that are randomly placed in an array into a specific sequence, such as ascending or descending order.
Bubble Sorting
A sorting mechanism where adjacent elements are compared and interchanged (swapped) if they are in the wrong order, repeating until the entire data set is sorted.
Swapping
The process of interchanging two adjacent elements in an array using a temporary variable, typically used in sorting algorithms like Bubble Sort.
Selection Sorting
A sorting method that finds the maximum or minimum element in the unsorted portion of an array and swaps it with the first element of that portion, maintaining a sorted subarray at the beginning.
Two-Dimensional Array
An array that represents data in a table or matrix format, indexed by two subscripts: one for the rows and one for the columns.
Matrix Representation
A pictorial representation of a 2-D array showing data organized in rows (i) and columns (j).
Diagonal elements sum
A process in 2-D arrays where elements with equal row and column indices, such as (0,0) and (1,1), are added together.