23
A Metric for Language and Problem Project members: 郭安哲 Kuo, An Che 陳敬之 Chen, Ching Tzu Instructor: 陳穎平 Ying-ping Chen Department of Computer Science National Chiao Tung University

Metric Of Language

Embed Size (px)

Citation preview

Page 1: Metric Of Language

A Metric for Language and Problem

Project members:郭安哲 Kuo, An Che陳敬之 Chen, Ching Tzu

Instructor:陳穎平 Ying-ping Chen

Department of Computer ScienceNational Chiao Tung University

Page 2: Metric Of Language

Language

Page 3: Metric Of Language

Entscheidungsproblem

Page 4: Metric Of Language

What solves a problem?

Page 5: Metric Of Language

What is a problem

Do you love me?

Page 6: Metric Of Language

What is a problem

{01}* y/n

Page 7: Metric Of Language

What is a problem

{01}* y/n

Is it a good model?

Page 8: Metric Of Language

Does it converge?

1 1 1 1{ } { } {1, , , ,...}2 3 4ns

n= =

Introduction

Given a sequence of real numbers

Page 9: Metric Of Language

Does it converge?

1 1 1 1{ } { } {1, , , ,...}2 3 4ns

n= =

Introduction

Given a sequence of real numbers

Ratio test, root test, divergence test, monotonic convergence theorem… etc

Page 10: Metric Of Language

Introduction

Now given a sequence of languages

1 2 3{ } { , , ,....}nL L L L=

Does it converge?

Page 11: Metric Of Language

Introduction

Now given a sequence of language

1 2 3{ } { , , ,....}nL L L L=

Does it converge? ?

Page 12: Metric Of Language

1 1 1 1{ } { } {1, , , ,...}2 3 4ns

n= =

Introduction

Let’s review how calculus proves1lim 0

n n→∞=

Page 13: Metric Of Language

Prove that 1lim lim 0nn n

Sn→∞ →∞

= =

10 R such that | 0 |

1

1

1

1 1| 0 |

k n kn

let k

n k

n

n n

ε ε

ε

ε

ε

ε

∀ > ∃ ∈ ∀ > − <

⇒ =

⇒∀ > =

⇒ >

⇒ − = <

Page 14: Metric Of Language

Introduction

For example, given

{0 1 | 0}n nL n= ≥

Page 15: Metric Of Language

Introduction

A little observation shows that

0

{0 1 | 0} lim

01

n nnn

ni i

ni

L n L

where L

→∞

=

= ≥ =

=

Page 16: Metric Of Language

Introduction

0

{ } { 01 }

{{ },{ ,01},{ ,01,0011},{ ,01,0011,000111},...}

ni i

ni

L

ε ε ε ε=

=

=

Each is regular but lim is context-freen nnL L

→∞

Page 17: Metric Of Language

Introduction

These discussions depend on two keys:

1. The property of a field2. The notion of distance, called “metric”

Page 18: Metric Of Language

Metric spaceConsider a set X, if

1. 2.3.

Then we call X is a metric spaceAny function with these 3 properties is called a distance function, or a metric.

( , ) 0 if ; otherwise ( , ) 0 d p q p q d p q> ≠ =( , ) ( , )d p q d q p=( , ) ( , ) ( , ) d p q d p r d r q r X≤ + ∀ ∈

,p q X∀ ∈

Page 19: Metric Of Language

Metric space

e.g:Euclidean space is an important example of metric space,whose metric is defined as

kR

( , ) | | where , kd x y x y x y R= − ∈

2

1(For , | | ( ))

kk

ii

x R x x=

∈ = ∑

Page 20: Metric Of Language

Summary

{01}* y/n

We did not alter the model

Page 21: Metric Of Language

What is a problem

{01}*+ - < ||

y/n

We add properties to the model, and hope it will help us understand the nature of problem solving better!

Page 22: Metric Of Language

Any Question ?

Page 23: Metric Of Language

Thank you for listening