SkillAgentSearch skills...

BkTree

A BkTree in C with Ruby bindings

Install / Use

/learn @tyler/BkTree
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

BkTrees are pretty cool.

This one is extremely alpha though, so... You should probably look elsewhere. It's pretty fast though, and that's pretty cool.

Anyway, if you want to give it a shot just do something like this:

ruby extconf.rb && make

Or install it via rubygems:

gem install bktree

And using it is really simple. It only has two methods:

require 'bktree'

bk = BkTree.new bk.add 'foo' bk.add 'bar' bk.add 'baz'

bk.query 'bor', 2 #=> [['bar', 1], ['baz', 2]]

Have fun.

       Your pal,
         Tyler McMullen

Related Skills

View on GitHub
GitHub Stars16
CategoryDevelopment
Updated2y ago
Forks6

Languages

C

Security Score

60/100

Audited on Jun 3, 2023

No findings