1. Java Concept Matching.
- element
- a piece of data stored in an array
- element type
- the type of data stored in an array
- subscript/index
- the position of an element
- one-dimensional array
- an array whose components are data of a specific type
- two-dimensional array
- an array whose componenents are arrays
- array
- a sequence of a specific type of elements with a fixed size of at least 0
ArrayList
- a sequence of Objects with a variable size of at least 0
-
insertion
sort - A sort that goes through a list of N elements N - 1 times. First the first two elements are put in the correct order. On each subsequent time through the list, one additional element is put in the correct position in the sorted part of the list.
-
selection
sort - a sort that goes through the list of N elements N - 1 times. First time through it recognizes the smallest element and places it in the first spot. On each subsequent time through the list, the smallest element in the unsorted part of the list is found and put at the end of the sorted part of the list.
-
binary
search - Starting with a sorted list, this search checks the number in the middle first and if it is smaller then this number it will check in the middle of the lower half of the list. It keeps narrowing down the range like this until it determines the subscript of the element it is looking for.
- sequential search
- This search checks each element individually to see if the element is equal to the value it’s looking for and return the subscript of the element that is found.
Match each of the following Array concepts.