Repository navigation
Expand file tree
/
Copy pathalgorithm.drawio
More file actions
150 lines (150 loc) · 15.7 KB
/
Copy pathalgorithm.drawio
File metadata and controls
150 lines (150 loc) · 15.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<mxfile host="app.diagrams.net" modified="2020-08-11T05:18:32.465Z" agent="5.0 (X11)" etag="uRlDFlTAqbmg1MJ8883v" version="13.5.9" type="github">
<diagram id="dciv1UkfujJWE3HnVDc4" name="Page-1">
<mxGraphModel dx="891" dy="640" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="OZneRwTbUhBqr6aMlu1N-61" value="<b><font style="font-size: 18px">DPIteration</font></b>" style="rounded=0;whiteSpace=wrap;html=1;align=center;verticalAlign=top;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="481" y="240" width="330" height="230" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-86" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.121;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;strokeWidth=2;fontSize=12;" parent="1" source="OZneRwTbUhBqr6aMlu1N-51" target="OZneRwTbUhBqr6aMlu1N-5" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-51" value="Region raster" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="71" y="160" width="60" height="40" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-85" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.25;entryY=0;entryDx=0;entryDy=0;strokeWidth=2;fontSize=12;" parent="1" source="OZneRwTbUhBqr6aMlu1N-50" target="OZneRwTbUhBqr6aMlu1N-5" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-50" value="<div>Water currents</div><div>raster<br></div>" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="141" y="150" width="60" height="50" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-90" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.929;entryY=-0.006;entryDx=0;entryDy=0;entryPerimeter=0;strokeWidth=2;fontSize=12;" parent="1" source="OZneRwTbUhBqr6aMlu1N-48" target="OZneRwTbUhBqr6aMlu1N-5" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-48" value="<div>Max <br></div><div>iterations<br></div>" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="331" y="170" width="80" height="30" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-102" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=1;entryY=0.75;entryDx=0;entryDy=0;strokeWidth=2;fontSize=12;" parent="1" source="OZneRwTbUhBqr6aMlu1N-4" target="OZneRwTbUhBqr6aMlu1N-81" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-4" value="<b><font style="font-size: 18px">NashSolver</font></b>" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="891" y="240" width="330" height="190" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-5" value="<b><font style="font-size: 18px">DynamicPlanner</font></b>" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="91" y="240" width="280" height="170" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-6" value="Initialize cost2go values to infinity" style="rounded=0;whiteSpace=wrap;html=1;align=left;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="101" y="280" width="260" height="30" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-7" value="Initialize motion plan to halt" style="rounded=0;whiteSpace=wrap;html=1;align=left;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="101" y="310" width="260" height="30" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-44" value="Initialize FIFO Q" style="rounded=0;whiteSpace=wrap;html=1;align=left;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="491" y="280" width="310" height="30" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-45" value="Add goal location to Q" style="rounded=0;whiteSpace=wrap;html=1;align=left;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="491" y="310" width="310" height="30" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-52" value="While Q not empty" style="rounded=0;whiteSpace=wrap;html=1;align=left;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="491" y="340" width="310" height="30" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-53" value="<blockquote>Location (x, y) <font style="font-size: 15px"><b>←</b></font> front of queue</blockquote>" style="rounded=0;whiteSpace=wrap;html=1;align=left;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="491" y="370" width="310" height="30" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-56" value="<blockquote>Add unsolved neighbors of (x, y) to Q</blockquote>" style="rounded=0;whiteSpace=wrap;html=1;align=left;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="491" y="400" width="310" height="30" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-71" value="Update cost2go, motion plan" style="rounded=0;whiteSpace=wrap;html=1;align=left;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="101" y="340" width="260" height="30" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-73" value="<div style="font-size: 12px"><font style="font-size: 12px">cost2go, <br></font></div><div style="font-size: 12px"><font style="font-size: 12px">motion plan<br></font></div>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="376" y="270" width="100" height="20" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-75" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.25;entryDx=0;entryDy=0;strokeWidth=2;fontSize=12;" parent="1" source="OZneRwTbUhBqr6aMlu1N-74" target="OZneRwTbUhBqr6aMlu1N-71" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="51" y="385" />
<mxPoint x="51" y="348" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-74" value="Reached convergence or max iterations?" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;align=center;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="101" y="370" width="260" height="30" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-76" value="No" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=12;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="51" y="390" width="40" height="20" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-78" value="<div align="center">Write cost2go &amp; motion plan</div>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;align=center;fillColor=#f8cecc;strokeColor=#b85450;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="171" y="460" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-80" value="Yes" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=12;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="241" y="420" width="40" height="20" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-101" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.25;exitDx=0;exitDy=0;entryX=0;entryY=0.25;entryDx=0;entryDy=0;strokeWidth=2;fontSize=12;" parent="1" source="OZneRwTbUhBqr6aMlu1N-81" target="OZneRwTbUhBqr6aMlu1N-4" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-81" value="<blockquote>Update cost2go, motion plan at (x, y)</blockquote>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;align=left;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="491" y="430" width="310" height="30" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-82" value="Generate game with player, weather actions " style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;align=left;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="916" y="275" width="280" height="30" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-79" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeWidth=2;fontSize=12;" parent="1" source="OZneRwTbUhBqr6aMlu1N-74" target="OZneRwTbUhBqr6aMlu1N-78" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-87" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeWidth=2;fontSize=12;" parent="1" source="OZneRwTbUhBqr6aMlu1N-84" target="OZneRwTbUhBqr6aMlu1N-5" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-84" value="Error raster" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;align=center;fillColor=#f8cecc;strokeColor=#b85450;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="211" y="170" width="50" height="30" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-89" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;strokeWidth=2;fontSize=12;" parent="1" source="OZneRwTbUhBqr6aMlu1N-88" target="OZneRwTbUhBqr6aMlu1N-5" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-88" value="Goal" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;align=center;fillColor=#f8cecc;strokeColor=#b85450;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="271" y="170" width="50" height="30" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-92" value="<div style="font-size: 12px"><font style="font-size: 12px">cost2go, <br></font></div><div style="font-size: 12px"><font style="font-size: 12px">motion plan<br></font></div>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="606" y="500" width="95" height="20" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-72" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.25;entryDx=0;entryDy=0;fontSize=11;strokeWidth=2;" parent="1" target="OZneRwTbUhBqr6aMlu1N-61" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="371" y="355" as="sourcePoint" />
<Array as="points">
<mxPoint x="426" y="355" />
<mxPoint x="426" y="298" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-91" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;strokeWidth=2;fontSize=12;" parent="1" source="OZneRwTbUhBqr6aMlu1N-61" target="OZneRwTbUhBqr6aMlu1N-71" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="646" y="490" />
<mxPoint x="411" y="490" />
<mxPoint x="411" y="355" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-93" value="Set initial players actions to row 1, column 1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;align=center;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="916" y="305" width="280" height="30" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-94" value="<div>Players take turns choosing an action to min or max the cost w.r.t. other players action</div><div>(for k iterations)<br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;align=center;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="916" y="335" width="280" height="50" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-95" value="Player actions <font style="font-size: 12px"><b><font style="font-size: 17px">←</font> </b>most frequent choices<b><br></b></font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;align=center;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="1" vertex="1">
<mxGeometry x="916" y="385" width="280" height="30" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-98" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;strokeWidth=2;fontSize=12;" parent="1" source="OZneRwTbUhBqr6aMlu1N-4" target="OZneRwTbUhBqr6aMlu1N-4" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-103" value="<div style="font-size: 12px"><font style="font-size: 12px">cost2go<br></font></div>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="821" y="255" width="60" height="20" as="geometry" />
</mxCell>
<mxCell id="OZneRwTbUhBqr6aMlu1N-104" value="<b>Updated player actions, <br>action costs for (x, y)<br></b>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=12;" parent="1" vertex="1">
<mxGeometry x="871" y="460" width="165" height="20" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>