Unit 6: Array

studied byStudied by 127 people
0.0(0)
get a hint
hint

Arrays

1 / 16

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 173 people
Updated ... ago
4.5 Stars(4)
note Note
studied byStudied by 14 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 12 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 330 people
Updated ... ago
5.0 Stars(3)
note Note
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 17 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 407 people
Updated ... ago
5.0 Stars(1)

Explore top flashcards

flashcards Flashcard60 terms
studied byStudied by 15 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard50 terms
studied byStudied by 4 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard36 terms
studied byStudied by 23 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard227 terms
studied byStudied by 15 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard37 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard46 terms
studied byStudied by 23 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard41 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard49 terms
studied byStudied by 22 people
Updated ... ago
5.0 Stars(1)