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