Learn R Programming

datastructures (version 0.2.9)

binomial_heap: Create a new binomial_heap

Description

Instantiates a new '>binomial_heap object, i.e. a tree-like data structure satisfying the min-heap property.

Usage

binomial_heap(key.class = c("character", "numeric", "integer"))

Arguments

key.class

the primitive class type of the keys

Value

returns a new binomial_heap object

Examples

Run this code
# NOT RUN {
 # creates a binomial_heap<character, SEXP>
 b_heap <- binomial_heap()

 # creates a binomial_heap<numeric, SEXP>
 b_heap <- binomial_heap("numeric")

 # creates a binomial_heap<character, SEXP>
 b_heap <- binomial_heap("character")

# }

Run the code above in your browser using DataLab