8000 GitHub - bfgray3/bigo: Analysis of Empirical Algorithmic Complexity
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ bigo Public

Analysis of Empirical Algorithmic Complexity

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

bfgray3/bigo

Repository files navigation

bigo

Build Status

bigo (big-O) is an R package designed to make it quick and easy to measure and visualize the runtime complexity of algorithms in your code. It emphasizes empirical runtime measurements–in numerical values and plots–rather than theoretical complexity analysis. This functionality is useful for researchers evaluating their algorithms, students learning computer science concepts, and many other R users.

Installation

You can install bigo from GitHub.

# install.packages("devtools")
devtools::install_github("bfgray3/bigo")

Example

Below we deomonstrate the most basic functionality of bigo with a simple Fibonacci function.

library(bigo)

fib <- function(n) {
 
  if (n < 1) {
    stop("`n` must be a positive integer.", call. = FALSE)
  } else if (n < 3) {
    return(1)
  } else {
    return(Recall(n - 1) + Recall(n - 2))
  }

}

plot(bigo(f = fib, n = seq(from = 2, to = 30, by = 2)))

About

Analysis of Empirical Algorithmic Complexity

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0