MovetoFront
Move-to-Front (MTF) refers to two related ideas in computer science: a self-organizing heuristic for dynamic lists and a transform used in data compression.
Move-to-Front as a heuristic: In a list of items, when an item is accessed, it is moved
Move-to-Front transform in data compression: The MTF transform is applied after the Burrows-Wheeler Transform (BWT) in
Complexity: Naively, locating a symbol in the list takes O(n) time per symbol, with O(1) to move
Applications: The MTF transform is a standard component of many BWT-based compression tools, such as those used