liblevenshtein 4.0.0
A library for generating Finite State Transducers based on Levenshtein Automata.
Loading...
Searching...
No Matches
position_transition.h
Go to the documentation of this file.
1#ifndef LIBLEVENSHTEIN_TRANSDUCER_POSITION_TRANSITION_H
2#define LIBLEVENSHTEIN_TRANSDUCER_POSITION_TRANSITION_H
3
4#include <cstddef>
5#include <vector>
6
9
10namespace liblevenshtein {
11
26auto index_of(std::vector<bool> &characteristic_vector, std::size_t k,
27 std::size_t i) -> std::size_t;
28
41template <Algorithm Type>
43 std::vector<bool> &characteristic_vector,
44 std::size_t offset) -> std::vector<Position *>;
45
60template <>
62 std::size_t n, Position *position, std::vector<bool> &characteristic_vector,
63 std::size_t offset) -> std::vector<Position *>;
64
79template <>
81 std::size_t n, Position *position, std::vector<bool> &characteristic_vector,
82 std::size_t offset) -> std::vector<Position *>;
83
98template <>
100 std::size_t n, Position *position, std::vector<bool> &characteristic_vector,
101 std::size_t offset) -> std::vector<Position *>;
102
103} // namespace liblevenshtein
104
105
106#endif // LIBLEVENSHTEIN_TRANSDUCER_POSITION_TRANSITION_H
Represents a location within the Levenshtein automaton.
Definition position.h:11
void query(ll::Dawg *dawg, const std::string &query_term, std::size_t max_distance)
Definition main.cpp:25
Various utilities regarding Levenshtein transducers.
Definition namespaces.dox:9
auto position_transition(std::size_t n, Position *position, std::vector< bool > &characteristic_vector, std::size_t offset) -> std::vector< Position * >
Returns the closure over possible next Positions that are reachable from the current Position by adva...
auto position_transition< Algorithm::TRANSPOSITION >(std::size_t n, Position *position, std::vector< bool > &characteristic_vector, std::size_t offset) -> std::vector< Position * >
Returns the closure over possible next Positions that are reachable from the current Position by adva...
auto index_of(std::vector< bool > &characteristic_vector, std::size_t k, std::size_t i) -> std::size_t
Returns the first index of the desired character in the characteristic vector, beginning at the offse...
auto position_transition< Algorithm::STANDARD >(std::size_t n, Position *position, std::vector< bool > &characteristic_vector, std::size_t offset) -> std::vector< Position * >
Returns the closure over possible next Positions that are reachable from the current Position by adva...
auto position_transition< Algorithm::MERGE_AND_SPLIT >(std::size_t n, Position *position, std::vector< bool > &characteristic_vector, std::size_t offset) -> std::vector< Position * >
Returns the closure over possible next Positions that are reachable from the current Position by adva...