1D Arrays - Recap Searching and Sorting

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/8

flashcard set

Earn XP

Description and Tags

Flashcards covering 1D arrays, searching, and sorting algorithms.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

9 Terms

1
New cards

1D Array

A data structure that stores a fixed-size sequential collection of elements of the same type.

2
New cards

Searching

The process of finding a specific element within an array.

3
New cards

Sorting

The process of rearranging the elements of an array into a specific order.

4
New cards

Linear Search

An algorithm that sequentially checks each element of an array until the target element is found or the entire array has been searched.

5
New cards

Binary Search

An algorithm that repeatedly divides a sorted array in half, comparing the middle element to the target element to narrow down the search.

6
New cards

Bubble Sort

An algorithm where adjacent elements are compared and swapped if they are in the wrong order, causing larger elements to 'bubble' to the end of the array.

7
New cards

Selection Sort

An algorithm that repeatedly finds the minimum element from the unsorted portion of the array and places it at the beginning.

8
New cards

Index

The index to process the array

9
New cards

Flag

A flag that shows when target is found