mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-02-04 05:44:35 +00:00
[PR #1403] feat: Add Move-To-Front Linear Search implementation #2004
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/TheAlgorithms/C/pull/1403
State: closed
Merged: No
Description of Change
This pull request adds an implementation of the Move-To-Front Linear Search algorithm. The algorithm searches for an element in an array and, if found, moves it to the front of the array to speed up future searches.
References
Checklist
Notes: Added an efficient and useful variant of the linear search algorithm to the repository.