Skip to content

Instantly share code, notes, and snippets.

@joisino
joisino / random_feature.ipynb
Created September 26, 2024 04:34
ランダム特徴量を用いた注意機構の近似
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/*
The implementation of Art Class (IOI 2013) with C++
http://joisino.hatenablog.com/entry/2017/10/05/200000
Copyright (c) 2017 joisino
Released under the MIT license
http://opensource.org/licenses/mit-license.php
*/
/*
`x / (1<<n)` with shifts and an addition.
works with gcc 5.4.0
http://joisino.hatenablog.com/entry/2017/09/14/210000
Copyright (c) 2017 joisino
Released under the MIT license
http://opensource.org/licenses/mit-license.php
*/
/*
The implementation of <O(n), O(1)> RMQ with C++
varified with DSL_3_D
http://joisino.hatenablog.com/entry/2017/08/13/210000
Copyright (c) 2017 joisino
Released under the MIT license
http://opensource.org/licenses/mit-license.php
*/
/*
The implementation of <O(n), O(1)> LCA with C++
varified with GRL_5_C
http://joisino.hatenablog.com/entry/2017/08/13/210000
Copyright (c) 2017 joisino
Released under the MIT license
http://opensource.org/licenses/mit-license.php
*/
/*
The implementation of Rho Method with C++
varified with NTL_1_A
http://joisino.hatenablog.com/entry/2017/08/03/210000
Copyright (c) 2017 joisino
Released under the MIT license
http://opensource.org/licenses/mit-license.php
*/
/*
The implementation of Miller-Rabin Test with C++
varified with ALDS1_1_C
http://joisino.hatenablog.com/entry/2017/08/03/210000
Copyright (c) 2017 joisino
Released under the MIT license
http://opensource.org/licenses/mit-license.php
*/
'''
The implementation of HashedNets with chainer
http://joisino.hatenablog.com/entry/2017/07/27/210000
Copyright (c) 2017 joisino
Released under the MIT license
http://opensource.org/licenses/mit-license.php
'''
'''
The implementation of Adam with chainer
http://joisino.hatenablog.com/entry/2017/07/20/210000
Copyright (c) 2017 joisino
Released under the MIT license
http://opensource.org/licenses/mit-license.php
'''