aaronson-oracle

Crates.ioaaronson-oracle
lib.rsaaronson-oracle
version
sourcesrc
created_at2025-02-26 03:37:42.613431+00
updated_at2025-02-26 03:37:42.613431+00
descriptionA simple ngram-based predictor for a binary choice.
homepage
repositoryhttps://github.com/miguel-piedrafita/aaronson-oracle
max_upload_size
id1569996
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Miguel Piedrafita (m1guelpf)

documentation

README

Aaronson's Oracle

In a class I taught at Berkeley, I did an experiment where I wrote a simple little program that would let people type either "f" or "d" and would predict which key they were going to push next. It’s actually very easy to write a program that will make the right prediction about 70% of the time. Most people don’t really know how to type randomly. They’ll have too many alternations and so on. There will be all sorts of patterns, so you just have to build some sort of probabilistic model. Even a very crude one will do well. I couldn’t even beat my own program, knowing exactly how it worked. I challenged people to try this and the program was getting between 70% and 80% prediction rates. Then, we found one student that the program predicted exactly 50% of the time. We asked him what his secret was and he responded that he "just used his free will."

~ Scott Aaronson, Quantum Computing Since Democritus

Usage

You can play around with the oracle by running cargo run --example cli. Alternatively, use the library to build your own.

License

This project is licensed under the MIT license. See the LICENSE file for more information.

Commit count: 0

cargo fmt