A new algorithm for computing the minimum Hausdorff distance between two point sets on a line under translation Banghe Lia, Yuefeng Shena,b, Bo Lia,b a

Center of Bioinformatics & Key Laboratory of Mathematics Mechanization, Academy of Mathematics and Systems Science, Chinese Academy of Sciences, Beijing 100080, China b Graduate University of Chinese Academy of Sciences, Beijing 100049, China Information Processing Letters, Vol106(2008), PP. 52-58

Presenter: Hung-Hsi, Chen Date: Feb. 3, 2009 1

Abstract To determine the similarity of two point sets is one of the major goals of pattern recognition and computer graphics. One widely studied similarity measure for point sets is the Hausdorff distance. So far, various computational methods have been proposed for computing the minimum Hausdorff distance. In this paper, we propose a new algorithm to compute the minimum Hausdorff distance between two point sets on a line under translation, which outperforms other existing algorithms in terms of efficiency despite its complexity of O((m+n)lg(m+n)), where m and n are the sizes of two point sets. 2

One dimension Hausdorff Distance

{

}

d  A , B=max max min ∣b−a∣, max min ∣a−b∣ a ∈A b∈B b∈B a ∈A 0

2

0.5

3

A

A={ 0, 0.5, 2 , 3 } B={ 0, 0.3, 1 }

B

0

0.3

1

max min ∣b−a∣=max {min { 0, 0.3, 1 } , min { 0.5, 0.2, 0.5 } min { 2, 1.7, 1 } , min { 3, 2.7, 2 } }= a ∈A b∈ B max { 0, 0.2, 1, 2 }=2 max min ∣a−b∣=max {min { 0, 0.5, 2, 3 } , min { 0.3, 0.2, 1.7, 2.7 } , min { 1, 0.5, 1, 2 }}= b∈B a∈ A max { 0, 0.2, 0.5 }=0.5 d  A , B =max { 2, 0.5 }=2

3

Minimum Hausdorff Distance

Parameter t denotes the amount by which A is shifted. Goal: shift set A to get minimum Hausdorff distance 4

Huttenlocker's Algorithm Time Complexity: O(mn*log(mn)) ∣A∣=m ,∣B∣=n both are sorted f a , B t =d  ai t , B=min d  ai t , b j  i

f

bj, A

j ∈J

t =d b j , At =min d a it , b j  i∈ I

1.Compute the m functions fa ,B(t), each having n minima. i

2.Compute the n functions fb ,A(t), each having m minima. j

3.Compute the upper envelope of the (m+n) functions. ● Sort the spikes according to their left endpoints and add them from left to right. ● We have O(mn) segments, need O(mn*log(mn)) time to sort them. 4.Find the global minimum. 5

A={0, 0.5, 2, 3} , B={0, 0.3, 1} a = 2 , f B(t) 2,

b = 1 , f A(t) 1,

The slope of all segments = 1 or -1 6

A={0, 0.5, 2, 3} , B={0, 0.3, 1}

b1

a1 a2

b2

a3

b3

a4

When t = -1, the minimum Hausdorff distance = 1 7

Rote's Algorithm(Optimal) Time Complexity: O((m+n)*log(m+n)))

1.Sort A and B in increasing order, respectively. 2.Construct A* and B* from A and B. 3.Shift A* and B* such that the endpoints of them are superimposed. 4.Find spikes of each fa , B*(t) above the function g(t) = |t| i

5.Sort the spikes found by step 4. Because each(m+n) functions contributes at most two edges to g(t), we have at most O(m+n) spikes, need O((m+n)*log(m+n)) time to sort them. 6.Compute the minimum Hausdorff distance under translation. 8

A={0, 0.5, 2, 3} , B={0, 0.3, 1} 0

0.5

2

3

A B

0

0.3

1

A* = {0, 0,5, 2, 3, 15, 15.7, 16} B* ={0, 0.3, 1, 13, 14, 15.5, 16} A*

0 0.5 2

3

3*(diameter(A)+diameter(B))

15 15.7 16

3*(diameter(A)+diameter(B))

B* 0 0.3 1

13 14 15.5 16

Hausdorff distance d(A, B) = max fa ,B*(t), ai belongs to A* i

9

If we shift A* by t units, the left or the right endpoint will contribute at least |t| to the Hausdorff distance. g(t) = maxfa ,B*(t), ai belongs to A* i

We can get g(t) ≥|t| (low bound)

Lemma Each of the (m+n) functions d(ai+t, B*) contributes at most two edges to the function g(t)

g(t) ≥|t|

10

A* = {0, 0,5, 2, 3, 15, 15.7, 16} B* ={0, 0.3, 1, 13, 14, 15.5, 16}

g(t) ≥|t|

When t = -1, the minimum Hausdorff distance = 1 11

The new Algorithm(Optimal) Time Complexity: O((m+n)*log(m+n))) 1.Denote A as the set with larger diameter and B as the other set. 2.Sort A and B in increasing order, respectively. 3.Shift A and B such that am = b1 = 0. 4.Find spikes of fa ,B(t) and fb ,A(t) above the function f(t) i

j

5.Sort the spikes found by step 4. 6.Compute the minimum Hausdorff distance under translation.

12

A={0, 0.5, 2, 3} B={0, 0.3, 1} 0

0.5

2

3

A B

0

0.3

1

Shift A and B such that am = b1 = 0 A={-3, -2, -0.5, 0} B={0, 0.3, 1} -3

-2

-0.5 A

0 0.3

1

B

13

When t < 0 fa ,B(t) = min d(ai+t, B) = min (t, -ai+bj), for all j belongs to J i

= min((-ai+bj)-t) = (-ai+b1-t) = -ai-t because a1fa ,B(t)>...>fa ,B(t) 1

2

m

When t >(bn-a1) fa ,B(t) = min d(ai+t, B) = min (t, -ai+bj), for all j belongs to J i

= min((t-bj)+ai) = (t-bn) +ai > 0 Because a1
2

m

14

Assume |a1 – am| ≥ |b1 – bn|, let f(t) be

So f(t) = max{fa ,B(t), fa ,B(t), fb ,A(t), fb ,A(t)} 1

m

i

n

H(A+t, B) ≥ f(t), and the equality holds when t is sufficiently large or sufficiently small. A={-3, -2, -0.5, 0} B={0, 0.3, 1}

f(t)

15

How to Find spikes of fa ,B(t) and fb ,A(t) above i

j

the function f(t)

Lemma ∃t , f a , B f t ⇔ ∃! j ∈ J ∋−ai b j −a 1 and −a ib j−1 bn i

proof: f a , B t =d t ,−a i B=min d t ,−a ib j  i

j∈ J

f a , B t =0⇔ t∈ B−a i f a , B −a ib j =0 f a , B −a ib j −1 =0 When−a i b j −1t −a ib j  f a , B t forms a spike. The spike crosses f(t) ⇔−a ib j −a 1 and−a ib j−1 b n i

i

i

i

16

How to Find spikes of fa ,B(t) and fb ,A(t) above the i

j

function f(t) Lemma ∃t , f b , A f t ⇔ ∃! i∈ I ∋b j −a i −a 1 and −b jai 1b n j

Let S contains the elements that satisfy previous and this lemma. All the spikes possibly contribute to the H(A+t, B)

17

Algorithm Comparison

(a) uses Rote's algorithm, (b) uses the new algorithm Sizes of set A and B from {5, 10...595, 600} Randomly generated A and B in interval [0,1] for 400 times. Axis X, Y represent the sizes of set A and B Axis Z represents the number of spikes found by algorithm

18

19

A new algorithm for computing the minimum Hausdorff ...

Sort the spikes according to their left endpoints and add them from left to right. ... If we shift A* by t units, the left or the right endpoint will contribute at least |t| to ...

366KB Sizes 1 Downloads 267 Views

Recommend Documents

A Linear Time Algorithm for the Minimum-weight ... - Springer Link
For each Bi, 1 ≤ i ≤ l, applying Algorithm II, we can compute a collection of candidate sets. FBi u. = {FBi .... W. H. Freeman and Company, New York, 1979.

A Linear Time Algorithm for the Minimum-weight ... - Springer Link
In this paper, we study the minimum-weight feedback vertex set problem in ...... ISAAC'95 Algorthms and Computations, Lecture Notes in Computer Science,.

Monotonic iterative algorithm for minimum-entropy autofocus
m,n. |zmn|2 ln |zmn|2 + ln Ez. (3) where the minimum-entropy phase estimate is defined as. ˆφ = arg min .... aircraft with a nose-mounted phased-array antenna.

A distributed algorithm for minimum weight spanning trees ... - GitHub
displayed will be uniform (all nodes run the exact same code) and will require up to .... fragment it belongs to and in state Found at all other times. The algorithm.

A Linear Time Algorithm for Computing Longest Paths ...
Mar 21, 2012 - [eurocon2009]central placement storage servers tree-like CDNs/. [eurocon2009]Andreica Tapus-StorageServers CDN TreeLike.pdf.

A computational algorithm for computing cochlear ...
Carney 2001), or even to model behavioral data pertaining to auditory ... For any sound pressure (Pa) waveform, this stage produces stapes velocity (m/s),.

Faster algorithm for computing the edit distance ...
this distance is usually among the very first examples covered in an algorithms and data .... 3.2 of [9] for an example and a more detailed explanation. It turns out ...

Faster algorithm for computing the edit distance ...
Oct 24, 2012 - merging two adjacent segments. This is known as the interval-union-find problem, and a (not very complicated) amortized constant time ...

A New Method for Computing the Transmission ...
Email: [email protected], [email protected]. Abstract—The ... the transmission capacity of wireless ad hoc networks for three plausible point ...

A New Method for Computing the Transmission ...
the transmission capacity of wireless ad hoc networks for three plausible point ... no coordination, PCP used to model sensor networks where clustering helps in ...

A NEW ACTIVE LEARNING ALGORITHM FOR ...
We propose a new active learning algorithm to address the problem of selecting ..... from Microsoft Speech research group for their technical help. We also like to ...

A new Algorithm for Community Identification in Linked ...
community identification, community mining, web communities. 1 Introduction. Since late nineties, identification of web communities has received much attention from researchers. HITS is a seminal algorithm in the community identification (CI) algorit

A New Algorithm for Finding Numerical Solutions of ... - IEEE Xplore
optimal control problem is the viscosity solution of its associated Hamilton-Jacobi-Bellman equation. An example that the closed form solutions of optimal ...

A new algorithm for finding numerical solutions of ...
Mar 2, 2009 - Department of Mathematics, Beijing Institute of Technology, Beijing .... Given a running cost L(t, y, u) and a terminal cost ψ(y), the optimal ...

A New Scheduling Algorithm for Distributed Streaming ...
Department of Computer Science and Technology, Tsinghua University, Beijing 100084 China. 1 This paper is ... Tel: +86 10 62782530; fax:+86 10 62771138; Email: [email protected]. Abstract ... In patching algorithm, users receive at.

An I/O-Efficient Algorithm for Computing Vertex ...
Jun 8, 2018 - graph into subgraphs possessing certain nice properties. ..... is based on the belief that a 2D grid graph has the property of being sparse under.

iCard – Foundation for A New Ubiquitous Computing ...
the cellular service provided by wireless ISP, or may choose to do some serious work .... more seriously, the enterprise networks to the attackers. With VPN and ...

the matching-minimization algorithm, the inca algorithm and a ...
trix and ID ∈ D×D the identity matrix. Note that the operator vec{·} is simply rearranging the parameters by stacking together the columns of the matrix. For voice ...

minimum
May 30, 1997 - Webster's II NeW College Dictionary, Houghton Mif?in,. 1995, p. .... U.S. Patent. Oct. 28,2003. Sheet 10 0f 25. US RE38,292 E. Fl 6. I4. 200. 220.

A New NC-Algorithm for Finding a Perfect Matching in d-Regular ...
cubic-bipartite graphs, our algorithm as well as its analysis become much .... cycle vector in G is a big even cycle vector if it contains Ω(k) 3-vertices of G.

An Implementation of a Backtracking Algorithm for the ...
sequencing as the Partial Digest Problem (PDP). The exact computational ... gorithm presented by Rosenblatt and Seymour in [8], and a backtracking algorithm ...