Unit 6: Array

studied byStudied by 160 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

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 15 people
739 days ago
5.0(1)
note Note
studied byStudied by 12 people
828 days ago
5.0(2)
note Note
studied byStudied by 17 people
855 days ago
5.0(3)
note Note
studied byStudied by 22 people
846 days ago
5.0(1)
note Note
studied byStudied by 18 people
788 days ago
5.0(1)
note Note
studied byStudied by 15 people
857 days ago
5.0(1)
note Note
studied byStudied by 23 people
145 days ago
5.0(84)
note Note
studied byStudied by 1 person
1 hour ago
5.0(1)

Explore top flashcards

flashcards Flashcard (29)
studied byStudied by 14 people
786 days ago
5.0(1)
flashcards Flashcard (22)
studied byStudied by 10 people
675 days ago
5.0(1)
flashcards Flashcard (42)
studied byStudied by 13 people
640 days ago
5.0(1)
flashcards Flashcard (49)
studied byStudied by 633 people
313 days ago
5.0(3)
flashcards Flashcard (56)
studied byStudied by 1 person
752 days ago
5.0(1)
flashcards Flashcard (81)
studied byStudied by 18 people
492 days ago
5.0(1)
flashcards Flashcard (32)
studied byStudied by 9 people
512 days ago
5.0(1)
flashcards Flashcard (40)
studied byStudied by 26 people
290 days ago
5.0(1)
robot