CoolFace
Apppublic

kaydenw1/linear_search_demonstration

sourceHugging Faceupdated 10mo agoView on Hugging Face
0likes
App README

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

Created by Kayden Warner

Last updated on Dec 12, 2025

I chose to create a demonstration of linear search because I already had a visualization of what I wanted the end product to look like.

Please look at image files for documentation of testing.

Decomposition: iterate through the list. If the item at the current index is equal to the desired value, break out of the loop and return the value. Pattern Recognition: the algorithm always compares one changing value to one specified unchanging value. Abstraction: the user doesn't have to understand that the program is going through the list by index, simply that it looks over each value. Algorithm Design: user inputs as csv list (or chooses to generate a list), the algorithm will run, the comparison animation will play, and the final result will be displayed.