Kernel: Python 3 (system-wide)
In [1]:
In [2]:
In [3]:
Out[3]:
[100.0,
110.00000000000001,
90.9090909090909,
121.00000000000001,
100.0,
82.64462809917354,
133.10000000000005,
110.00000000000001,
90.9090909090909,
75.13148009015777]
The number of levels in a binomial lattice of length N is
In [5]:
Код для визуализации решетки
lattice visialisation based on idea from link
In [5]:
In [6]:
In [8]:
Out[8]:
dot - graphviz version 2.38.0 (20140413.2041)
Using render: cairo:cairo
Using device: png:cairo:cairo
libdir = "/usr/lib/graphviz"
Activated plugin library: libgvplugin_dot_layout.so.6
Using layout: dot:dot_layout
The plugin configuration file:
/usr/lib/graphviz/config6a
was successfully loaded.
render : cairo dot fig gd map pic pov ps svg tk vml vrml xdot
layout : circo dot fdp neato nop nop1 nop2 osage patchwork sfdp twopi
textlayout : textlayout
device : bmp canon cmap cmapx cmapx_np dot eps fig gd gd2 gif gtk gv ico imap imap_np ismap jpe jpeg jpg pdf pic plain plain-ext png pov ps ps2 svg svgz tif tiff tk vml vmlz vrml wbmp x11 xdot xdot1.2 xdot1.4 xlib
loadimage : (lib) bmp eps gd gd2 gif ico jpe jpeg jpg png ps svg xbm
pack info:
mode undefined
size 0
flags 0
margin 8
pack info:
mode node
size 0
flags 0
fontname: "Times-Roman" resolved to: (ps:pango Nimbus Roman No9 L, REGULAR) (PangoCairoFcFont) "Nimbus Roman No9 L, Regular" /usr/share/fonts/type1/gsfonts/n021003l.pfb
network simplex: 21 nodes 30 edges maxiter=2147483647 balance=1
network simplex: 21 nodes 30 edges 3 iter 0.00 sec
Maxrank = 5, minrank = 0
mincross: pass 0 iter 0 trying 0 cur_cross 0 best_cross 0
mincross G: 0 crossings, 0.00 secs.
network simplex: 51 nodes 75 edges maxiter=2147483647 balance=2
network simplex: 51 nodes 75 edges 8 iter 0.00 sec
routesplines: 30 edges, 90 boxes 0.00 sec
Using render: cairo:cairo
Using device: png:cairo:cairo
dot: allocating a 1193K cairo image surface (729 x 419 pixels)
gvRenderJobs G: 0.03 secs.
In [9]:
Out[9]:
<matplotlib.image.AxesImage at 0x7f7cbcb58080>
- вероятность движения вверх на каждом шаге
In [10]:
Out[10]:
levels: 6 len: 21; number of first node on the last level: 15
------
161.05100000000004
133.10000000000002
110.00000000000003
90.9090909090909
75.13148009015777
62.092132305915506
------
68.301346 connected to 75.131480 and 62.092132
82.644628 connected to 90.909091 and 75.131480
100.000000 connected to 110.000000 and 90.909091
121.000000 connected to 133.100000 and 110.000000
146.410000 connected to 161.051000 and 133.100000
---
75.131480 connected to 82.644628 and 68.301346
90.909091 connected to 100.000000 and 82.644628
110.000000 connected to 121.000000 and 100.000000
133.100000 connected to 146.410000 and 121.000000
---
82.644628 connected to 90.909091 and 75.131480
100.000000 connected to 110.000000 and 90.909091
121.000000 connected to 133.100000 and 110.000000
---
90.909091 connected to 100.000000 and 82.644628
110.000000 connected to 121.000000 and 100.000000
---
100.000000 connected to 110.000000 and 90.909091
---
Задача
In [9]:
Out[9]:
3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)]
In [10]:
Out[10]:
100.0
100.0
100.0
100.0
In [0]: