Professional Documents
Culture Documents
Rehearsal Lesson
3
on
4 soluti
5 Ram Meshulam 2004
Limited DFS Attributes
• Completeness – Yes, if d≤l
• Optimality – No.
• Time Complexity: O (b l )
– If d<l, it is larger than in BFS
1 b b b . b O ( b )
2 3 d d
• Memory Complexity: O(bl )
– Where b is branching factor and l is the
depth limit.
4,10
1,3,
9
c
5,13
1 b b b . b O ( b )
2,6,16 2 3 d d
7,17c 8,20
11 12 14 c
15 18 19 21 22
1 b b b . b O ( b )
• Optimality – yes, if graph is un-weighted.
• Time Complexity:
2 3 d d
O (( d ) b ( d 1) b 2 ... (1) b d ) O ( b d )
• Consistent/monotonic (desirable) :
h(m)-h(n) ≤w(n,m) where m is parent of n. This
.ensures f(n) ≥f(m)
• Schedule func.
c round startTemp
example:
0<c<1
Priority Best-FS
Queue (Greedy,A*,Unifo
rm-Cost Alg).
2 4 6 2 4
IG ( Patrons) 1 [ I (0,1) I (1,0) I ( , )] .0541 bits
12 12 12 6 6
2 1 1 2 1 1 4 2 2 4 2 2
IG (Type ) 1 [ I ( , ) I ( , ) I ( , ) I ( , )] 0 bits
12 2 2 12 2 2 12 4 4 12 4 4
Patrons has the highest IG of all attributes and so is chosen by the DTL
algorithm as the root
39
:Computing the denominator
#1 approach - compute relative likelihoods:
• If M (meningitis) and W(whiplash) are two possible
explanations
#2 approach - Using M & ~M:
• Checking the probability of M, ~M when S
– P(M|S) = P(S| M) * P(M) / P(S)
– P(~M|S) = P(S| ~M) * P(~M)/ P(S)
• P(M|S) + P(~M | S) = 1 (must sum to 1)
40
Perceptrons
• Linear separability
– A set of (2D) patterns (x1, x2) of two classes is linearly
separable if there exists a line on the (x1, x2) plane
• w0 + w1 x1 + w2 x2 = 0
• Separates all patterns of one class from the other class
– A perceptron can be built with
• 3 input x0 = 1, x1, x2 with weights w0, w1, w2
– n dimensional patterns (x1,…, xn)
• Hyperplane w0 + w1 x1 + w2 x2 +…+ wn xn = 0 dividing the
space into two regions
w13
x1 x3 w35
w14
w23
x5
x2 w24 x4 w45
1 1
x0 w03
x6
w04 w65
w13
x1 x3 w35
w14
x5
w23
x2 w24 x4 w45
• Learning rate: 0.1 for the hidden layers, 0.3 for the output layer
• Thus,
P(x1x2…xn) = Pi=1,…,nP(xi|parents(Xi))
full joint distribution table
• Every BN over a domain implicitly represents some joint
distribution over that domain
P ( x1 , x2 , , xn | c) P (c)
argmax
c C P ( x1 , x2 , , xn )
argmax P ( x1 , x2 , , xn | c) P(c)
c C
54
MSTC- Multi Robot Spanning Tree
Coverage
• Complete - with approximate cellular decomposition
• Robust
– Coverage completed as long as one robot is alive
– The robustness mechanism is simple
• Off-line and On-line algorithms
– Off-line:
o Analysis according to initial positions
o Efficiency improvements
– On-line:
o Implemented on simulation of real-robots
55
Off-line Coverage, Basic Assumptions
• Area division – n cells
• k homogenous robots
• Equal associated tool size
• Robots movement
56
STC: Spanning Tree Coverage
(Gabrieli and Rimon 2001)
• Area division
• Graph definition
• Building the spanning tree
57
Non-backtracking MSTC
• Initialization phase: Build STC, distribute to robots
• Distributed execution: Each robot follows its section
– Low risk of collisions
C
!Robot B is done
!Robot A is done
B
!Robot C is done
58
Backtracking MSTC
• Similar initialization phase
• Robots backtrack to assist others
• No point is covered more than twice
D
C
B
A
59