Skip to content

Instantly share code, notes, and snippets.

View skywalker239's full-sized avatar

Alexander Kharitonov skywalker239

View GitHub Profile
@skywalker239
skywalker239 / sifp.cpp
Created March 1, 2012 14:13 — forked from sandello/sifp.cpp
Seemingly Impossible Functional Program in C++
// Ivan Pouzyrevsky, EWSCS'12.
#include <iostream>
#include <functional>
#include <memory>
#include <utility>
// This is a C++ implementation for Seemingly Impossible Functional Program, which in finite time tests whether
// a computable predicate on binary strings yields True for some binary string. It does so by exhaustive search
// on whole space. Some nasty-nasty tricks like call-by-need can make this algorithm run fast.