Giter VIP home page Giter VIP logo

mikewlange / 35searchesinc Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 3.0 202 KB

Around 35 of the fastest and most widely used full text search algorithms. Written in c, compiled with llvm.clang for iOS and everything else. Boyer-Moore , Knuth-Morris-Pratt, Reverse Colussi even the Zhu-Takaoka algorithm. And 32 more.

Objective-C 97.46% C 2.54%
search-algorithm search boyer-moore string-manipulation algorithms kmp-algorithm simon apostolico-giancarlo backwardoracle boyer-moore-horspool deterministic-finite-automaton karp-rabin optimal-mismatch franek-jennings-smyth turbo-bm two-way-search

35searchesinc's Introduction

Motekim-Search Build Status

All funtions written in c and wrapped in swift. Build in xcode if you wish.

The Algorithms:

Note: I renamed and made up a few - which are the best ones. But 90% you know.

Boyer-Moore algorithm

Alpha Skip

Apostolico-Crochemore algorithm

Apostolico-Giancarlo algorithm

BMH-SBNDM

BRUTE FORCE SEARCH

BackwardOracle

Berry-Ravindran algorithm

Boyer-Moore-Horspool

Colussi algorithm

Deterministic Finite Automaton algorithm

Extended-BOM

Franek-Jennings-Smyth

Galil-Giancarlo algorithm

Galil-Seiferas

KMP Skip Search algorithm

Karp-Rabin algorithm

Knuth-Morris-Pratt

Morris-Pratt

Optimal Mismatch algorithm

Ordered Alphabets

Quick Search

Railgun String Search (CAN'T BE BEAT OR BROKEN)

Research with an automaton search

Reverse Colussi algorithm

Reverse Fuck All

SIMON!

ShiftAnd

Shifty and Fuzzy

Skip Search

Turbo-BM algorithm

Two Way Search

Viva Hate

Zhu-Takaoka algorith

Good Read: https://arxiv.org/abs/1012.2547 #

It's very simple to use Swift and c side by by side.

Fun Swift opinion - If you're not low level engineers, you probably don't realize that Swift (or Golang - my new favorite) could easily replace c. But c is awesome. C++ can die already.

I took the TDD approach on this so every implementation is right in the unit tests.

These are most of the full text search algos out there I think.

I even found some esoteric ones that are blazing compared to the "standard" ones. You'll know them by their name as you'll have never heard of it.

This has been an interesting exercize'. Each one of these excell in specific scenarios. Some more universal than others. Lots of unexpected on specific data types. This is exciting because there is a strong possibility it's quite easy to improve every search platform/algo in existence via simple genetic algos and ML. That's a big one. But in dev. Similar to https://github.com/mikewlange/Kettle--Tpot-for-GPU-AI but for search critera/algo deduction/content.

Hopefully no one reads that last sentance as you now have a billian dollar search platform if you put in the work before me.

Here they are in no particular order.

https://github.com/mikewlange/35-Super-Fast-Search-Algorithms/tree/master/Motekim%20Search

35searchesinc's People

Contributors

mikewlange avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.