[PR #1403] feat: Add Move-To-Front Linear Search implementation #2004

Closed
opened 2026-01-29 15:27:21 +00:00 by claunia · 0 comments
Owner

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

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes: Added an efficient and useful variant of the linear search algorithm to the repository.

**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 - https://ics.uci.edu/~dan/pubs/searchsurv.pdf #### Checklist - [x] Added description of change - [x] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#File-Name-guidelines) - [x] Added tests and example, test must pass - [x] Relevant documentation/comments is changed or added - [x] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#Commit-Guidelines) - [x] Search previous suggestions before making a new one, as yours may be a duplicate. - [x] I acknowledge that all my contributions will be made under the project's license. Notes: Added an efficient and useful variant of the linear search algorithm to the repository.
claunia added the pull-request label 2026-01-29 15:27:21 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#2004