Entries from 2017-09-16 to 1 day

1. INTRODUCTION To simplify the presentation, we assume that all the endpoints of all the rectangles are disjoint. 表現を簡潔にするために、全ての長方形の頂点は他の長方形と接していない (disjoint) ものとする。 For a node x in a tree T, we de…

Initializing two dimensional dictionary in Python

◯ usage >>> table = dict2d(['a', 'b', 'c']) >>> table['a']['b'] = 100 >>> table['a']['b'] 100 ◯ definition def dict2d(key_list, default=None): return dict1d(key_list, dict1d(key_list, default)) def dict1d(key_list, default=None): n = len(k…