Unit 6: Array

studied byStudied by 128 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 3 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 26 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 18 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 8 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 85 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 11 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 3979 people
Updated ... ago
5.0 Stars(27)

Explore top flashcards

flashcards Flashcard124 terms
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard34 terms
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard28 terms
studied byStudied by 38 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard26 terms
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard40 terms
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard22 terms
studied byStudied by 21 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard87 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard26 terms
studied byStudied by 3480 people
Updated ... ago
4.1 Stars(42)