電機四 許泓崴 B02901023
S
S
S
Target region
Revised region
v1
v2
O
S
B
A
O
S
v1
v2
O
S
B
A
S
A
B
R
P
h
H
C
If
Then
v1
v2
O
S
B
A
R
Input :
Output :
R is in a line!
v1
v2
O
S
B
A
R
Input :
Output :
Type 1
v1
v2
O
S
B
A
R
Input :
Output :
Type 1
S
v
O
S
Input :
Output :
R is in a line!
A
R
B
Type 2
v
B
S
Input :
Output :
R is in a line!
R
A
O
Type 3
S
Input :
Output :
R4
R3
R2
R1
Type 1
Type 2
Type 3
Actually, we only need R2 and R4 in rectangle
S
About Type
v3
v1
v2
Type 2
Type 3
Type 1
| Problem size | Execution time(seconds) |
|---|---|
| 10,000 | 0.000196 |
| 1,000,000 | 0.01539 |
| 100,000,000 | 0.992516 |
| 10,000,000,000 | 95.78 |
S
S
S
A
B
P
H
A
B
L
L is too small at the corner
S
If we use rectangle,
we might loss some area
S
(x, y)
(c, d)
S
(x, y)
(c, d)
No improvement in experiment
S
(x, y)
(c, d)
(a, b)
Uniformly distribute samples to evaluate the difference between refernce
(a,b)
(c,d)
Black:rect
Red:f^{-1}(rect)
Green:f(rect)
Optimal solution must exist between green and red rectangles
z
h
L
z
h
L
d
z
h
L
z
h
L
d
z
h
L
d
h
L
z
h
L
d
z
h
L
d
Evaluation point
Source
It seems that reflected light is the majoring effect
Shifting is a problem