Sorting and Searching

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 12:56 AM on 5/6/24
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

continuously finds min value and moves it to the front

arr[0] swaps with min

arr[1] swaps with next min

2
New cards

insertion sort

setting a[0] as the smallest, creating a sorted and unsorted half, taking elements from the unsorted half inserting it into the sorted half

3
New cards

merge sort

splits list in half, merge sorts both halves, and merges together

4
New cards

merge method

merge(a, 0, 3, 5): for array a,

  • 3 is the number that differentiates sorted and unsorted

  • 0 is the first element

  • 5 is the last

5
New cards

binary search

divides half the sorted array in half, divide and conquer searching

6
New cards

sequential search

traversing through an array until key is found

Explore top flashcards

flashcards
Clinical Exercise Physiology
42
Updated 1227d ago
0.0(0)
flashcards
CCC 120
31
Updated 1095d ago
0.0(0)
flashcards
psych final study guide chap 6
64
Updated 836d ago
0.0(0)
flashcards
Colour perception
28
Updated 866d ago
0.0(0)
flashcards
L’Alimentation et La Santé
100
Updated 1119d ago
0.0(0)
flashcards
D1 L14 Chores and Activities
23
Updated 300d ago
0.0(0)
flashcards
Bio Exam Mats 2
112
Updated 1101d ago
0.0(0)
flashcards
Clinical Exercise Physiology
42
Updated 1227d ago
0.0(0)
flashcards
CCC 120
31
Updated 1095d ago
0.0(0)
flashcards
psych final study guide chap 6
64
Updated 836d ago
0.0(0)
flashcards
Colour perception
28
Updated 866d ago
0.0(0)
flashcards
L’Alimentation et La Santé
100
Updated 1119d ago
0.0(0)
flashcards
D1 L14 Chores and Activities
23
Updated 300d ago
0.0(0)
flashcards
Bio Exam Mats 2
112
Updated 1101d ago
0.0(0)