overlap-search
v1.2.1
Published
Search algorithm for short texts
Downloads
7
Readme
Overlap Search
Search algorithm for short texts
Built With · Features · Installation · Usage
Built With
Features
Longest Path Problem Algorithm
I implemented my algorithm for comparing amino acid sequences to compare search prompts and potential results by their characters.
Installation
Install npm.
I recommend nvm for windows
Install this package
npm install overlap-search
Usage
import search from "overlap-search";
const searchKey = "geoghraphy";
const options = ["geometry", "geology", "photography", "geography", "hydrolics"];
const result = search(searchKey, options);
console.log(result.map((index) => options[index]));
// [ 'geography', 'photography', 'geometry', 'geology', 'hydrolics' ]