Sorting and Searching Algorithms

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/5

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 11:32 PM on 9/13/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

6 Terms

1
New cards

Selection Sort

Begins by finding the smallest value in the list and moves it to index zero.

Next, it looks for the second smallest value in the list, and moves it to index zero.

This process continues until the list completely sorted.

2
New cards

Insertion Sort

Begins by comparing the first two values in the list, the smaller value will be swapped to go infront of the larger value. Swapping won’t happen if the first value is smaller than the second.

Next, the larger number from the last comparison will be compared to the value to its right. The smaller value will be moved infront of the larger number. Swapping doesn’t occur for the same conditions above.

Thirdly, the smaller value from this second comparison will be compared to the smaller number of the last comparison.

This process continues until the list completely sorted.

3
New cards

Merge Sort

Begins by splitting an array into two parts until each value is seperated.

Next, the algorithm reassembles the list by working on one side of the list. The first two values of the list get compared, and the smallest will be placed infront of the larger one. As each value gets added to one side of the list, it gets compared to the largest value of that side of the list. If it’s smaller, it proceeds ito be placed nfront of that number.

Once both sides are sorted, the arrays will merge, and values from both sides are compared.

4
New cards

Linear Search

Iterates through the ENTIRE list, and compares each value with the target value

5
New cards

Binary Search

This search algorithm requires the list to be sorted.

This compares the target value with the middle value in the list.

Depending if the value is less than or greater than, half of the list will be eliminated.

6
New cards

What equation can we use to estimate the number of iterations a binary search will take?

2x , where x is the number of values in the list

Explore top notes

note
Gases and Solutions
Updated 1206d ago
0.0(0)
note
Chapter 3: Federalism
Updated 1019d ago
0.0(0)
note
apush 5.1-5.3
Updated 464d ago
0.0(0)
note
Español 3H Repaso vocabulario
Updated 1060d ago
0.0(0)
note
Cranial Nerves
Updated 392d ago
0.0(0)
note
Gases and Solutions
Updated 1206d ago
0.0(0)
note
Chapter 3: Federalism
Updated 1019d ago
0.0(0)
note
apush 5.1-5.3
Updated 464d ago
0.0(0)
note
Español 3H Repaso vocabulario
Updated 1060d ago
0.0(0)
note
Cranial Nerves
Updated 392d ago
0.0(0)

Explore top flashcards

flashcards
Bio Lecture Final
276
Updated 690d ago
0.0(0)
flashcards
Microbiology Exam 4 Part 2
108
Updated 1062d ago
0.0(0)
flashcards
industrialization study guide
20
Updated 913d ago
0.0(0)
flashcards
Mesopotamia vocab
37
Updated 123d ago
0.0(0)
flashcards
bio practical 3
82
Updated 1077d ago
0.0(0)
flashcards
AD 227 Exam 3 Key Works
33
Updated 315d ago
0.0(0)
flashcards
Bio Lecture Final
276
Updated 690d ago
0.0(0)
flashcards
Microbiology Exam 4 Part 2
108
Updated 1062d ago
0.0(0)
flashcards
industrialization study guide
20
Updated 913d ago
0.0(0)
flashcards
Mesopotamia vocab
37
Updated 123d ago
0.0(0)
flashcards
bio practical 3
82
Updated 1077d ago
0.0(0)
flashcards
AD 227 Exam 3 Key Works
33
Updated 315d ago
0.0(0)