Unit 6: Array

studied byStudied by 139 people
0.0(0)
Get a hint
Hint

Arrays

1 / 16

flashcard set

Earn XP

17 Terms

1

Arrays

data structure that makes it easier to handle similar types of data.

New cards
2

What arrays can store?

Primitive or object data types

New cards
3

Element

A seperate piece of data

New cards
4

index

is used to identify the specific location of this element.

New cards
5

Square brackets

are used to show that an array is present.

New cards
6

What do curly brackets indicate?

They indicate an initializer list

New cards
7

ArrayindexOutOfBoundsException

occurs when the indexes go out of bonds from what the array is actually set to.

New cards
8

enhanced for loop

it provides a variable that will hold each element of an array.

New cards
9

No variable

it is used to refer to the current index.

New cards
10

Sequential searches and Binary searches

It is called the 2 search algorithms

New cards
11

Sequential searches

These search through the data one by one in order, and take a long time to execute.

New cards
12

Binary searches

These search through the data for the desirable value by dividing it into half each time until the desired value is found.

New cards
13

Sorting Algorithms

They take data in an array, and rearrange it into a particular order.

New cards
14

Selection sort

This sort searches and swaps.

New cards
15

Insertion sort

It compares the first 2 elements, and depending on the outcome of this it inserts the second value in front of the first value into index 0, which moves the first value to index 1.

New cards
16

Merge Sort

This type of sort uses recursion.

New cards
17

Recursion

Technique that uses a method to call itself.

New cards

Explore top notes

note Note
studied byStudied by 4 people
... ago
5.0(1)
note Note
studied byStudied by 21 people
... ago
5.0(1)
note Note
studied byStudied by 21 people
... ago
5.0(1)
note Note
studied byStudied by 1 person
... ago
5.0(1)
note Note
studied byStudied by 6 people
... ago
5.0(1)
note Note
studied byStudied by 31 people
... ago
5.0(1)
note Note
studied byStudied by 6 people
... ago
5.0(1)
note Note
studied byStudied by 674 people
... ago
5.0(4)

Explore top flashcards

flashcards Flashcard (63)
studied byStudied by 22 people
... ago
5.0(1)
flashcards Flashcard (85)
studied byStudied by 14 people
... ago
5.0(1)
flashcards Flashcard (183)
studied byStudied by 7 people
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (34)
studied byStudied by 21 people
... ago
5.0(1)
flashcards Flashcard (58)
studied byStudied by 17 people
... ago
5.0(1)
flashcards Flashcard (58)
studied byStudied by 12 people
... ago
5.0(2)
flashcards Flashcard (76)
studied byStudied by 452 people
... ago
5.0(7)
robot