Linear search, Checks each item in a list one by one until it finds the target., Starts at the first item of the list, Items do not need to be in order, Tends to be less efficient, Binary search, Items must be sorted, Begins by finding the middle item in the list, If item is not find checks if the target is greater than or less than the currently checked item, Generally more efficient, particularly on larger lists

Linear & binary search

Rangliste

Visuel stil

Indstillinger

AI-forstærket: Denne aktivitet indeholder indhold genereret af AI. Lær mere.

Skift skabelon

Gendan automatisk gemt: ?