This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
STXXL_ROOT ?= ../stxxl | |
STXXL_CONFIG ?= stxxl_boost.mk | |
include $(STXXL_ROOT)/$(STXXL_CONFIG) | |
CXX = $(STXXL_CXX) | |
CPPFLAGS += $(STXXL_CPPFLAGS) | |
LDLIBS += $(STXXL_LDLIBS) | |
CPPFLAGS += -O3 -Wall -g |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
################################################################################ | |
# * 10.04 - Fixed QTree printing. Thanks to Igor Shalyminov. | |
# * 10.04 - Implemented proper backtracking and forest restoration. Thanks to Pavel Sergeev. | |
# * 20.03 - Initial version. | |
################################################################################ | |
# GLOSSARY | |
################################################################################ | |
# * Term | |
# Either terminal or non-terminal symbol. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# For Yandex Data Analysis School | |
"""Takes MediaWiki XML dump and extracts pages to separate files.""" | |
SUBDIRECTORY_SPREAD = 512 | |
import sys | |
import os | |
import os.path |