module Algorithmable::Searches
Public Instance Methods
binary_search(element, collection)
click to toggle source
# File lib/algorithmable/searches.rb, line 6 def binary_search(element, collection) BinarySearch.lookup(element, collection) end
new_binary_search_tree(key_type, value_type)
click to toggle source
# File lib/algorithmable/searches.rb, line 10 def new_binary_search_tree(key_type, value_type) BinarySearchTree.new key_type, value_type end