Computing Rational Radical Sums in Uniform TC 0 Paul Hunter 2 , - - PowerPoint PPT Presentation

computing rational radical sums
SMART_READER_LITE
LIVE PREVIEW

Computing Rational Radical Sums in Uniform TC 0 Paul Hunter 2 , - - PowerPoint PPT Presentation

Computing Rational Radical Sums in Uniform TC 0 Paul Hunter 2 , Patricia Bouyer-Decitre 1 , Nicolas Markey 1 , el Ouaknine 2 , James Worrell 2 Jo 1 LSV, CNRS & ENS Cachan, France 2 OUCL, Oxford, UK December 13, 2010 Computing Arithmetic


slide-1
SLIDE 1

Computing Rational Radical Sums in Uniform TC0

Paul Hunter2, Patricia Bouyer-Decitre1, Nicolas Markey1, Jo¨ el Ouaknine2, James Worrell2

1

LSV, CNRS & ENS Cachan, France

2

OUCL, Oxford, UK

December 13, 2010

slide-2
SLIDE 2

Computing Arithmetic Expressions

Problem

How to efficiently compute arithmetic expressions? Decision problem or function problem?

Is the result less than a given value? Does the result equal a given value? Is the result zero?

What does efficiently mean?

Obviously, elementary operations (in floating-point arithmetic

  • r over the rationals) can be computed in polynomial time;

The problem becomes harder when e.g. radicals come into play; On the theoretical point of view, what is the exact complexity

  • f those problems?
slide-3
SLIDE 3

Example: addition of two integers

Example

Addition of two n-bit integers can be computed by circuits: a0 b0 s0 a1 b1 s1 a2 b2 s2 a3 b3 s3 s4

slide-4
SLIDE 4

Example: addition of two integers

Example

Addition of two n-bit integers can be computed by circuits: a0 b0 s0 a1 b1 s1 a2 b2 s2 a3 b3 s3 s4 ⊗

slide-5
SLIDE 5

Example: addition of two integers

Example

Addition of two n-bit integers can be computed by circuits: a0 b0 s0 a1 b1 s1 a2 b2 s2 a3 b3 s3 s4 ⊗ ⊗ ∧

slide-6
SLIDE 6

Example: addition of two integers

Example

Addition of two n-bit integers can be computed by circuits: a0 b0 s0 a1 b1 s1 a2 b2 s2 a3 b3 s3 s4 ⊗ ⊗ ∧ ⊗ ∧ ∨ ∧ ∨

slide-7
SLIDE 7

Example: addition of two integers

Example

Addition of two n-bit integers can be computed by circuits: a0 b0 s0 a1 b1 s1 a2 b2 s2 a3 b3 s3 s4 ⊗ ⊗ ∧ ⊗ ∧ ∨ ∧ ∨ ⊗ ∧ ∨ ∧ ∧ ∨

slide-8
SLIDE 8

Example: addition of two integers

Example

Addition of two n-bit integers can be computed by circuits: a0 b0 s0 a1 b1 s1 a2 b2 s2 a3 b3 s3 s4 ⊗ ⊗ ∧ ⊗ ∧ ∨ ∧ ∨ ⊗ ∧ ∨ ∧ ∧ ∨ ⊗ ∧ ∨ ∨ ∨ ∧ ∧ ∧ ∨

slide-9
SLIDE 9

Example: addition of two integers

Example

Addition of two n-bit integers can be computed by circuits: a0 b0 s0 a1 b1 s1 a2 b2 s2 a3 b3 s3 s4 ⊗ ⊗ ∧ ⊗ ∧ ∨ ∧ ∨ ⊗ ∧ ∨ ∧ ∧ ∨ ⊗ ∧ ∨ ∨ ∨ ∧ ∧ ∧ ∨

slide-10
SLIDE 10

Square-root-sum and related problems

Geometric problems:

Euclidean Traveling Salesman Problem: compare √ 5 + √ 18 with √ 10 + √ 13.

slide-11
SLIDE 11

Square-root-sum and related problems

Geometric problems:

Euclidean Traveling Salesman Problem: compare √ 5 + √ 18 with √ 10 + √ 13. Euclidean Minimum Spanning Tree Problem.

slide-12
SLIDE 12

Square-root-sum and related problems

Geometric problems:

Euclidean Traveling Salesman Problem: compare √ 5 + √ 18 with √ 10 + √ 13. Euclidean Minimum Spanning Tree Problem.

Quoting David Eppstein:

It is not known on Turing machines how to quickly compare a sum

  • f distances (square roots of integers) with an integer or other

similar sums, so even (decision versions of) easy problems such as the minimum spanning tree are not known to be in NP.

slide-13
SLIDE 13

Square-root-sum and related problems

Geometric problems:

Euclidean Traveling Salesman Problem: compare √ 5 + √ 18 with √ 10 + √ 13. Euclidean Minimum Spanning Tree Problem.

Recently, the “square-root-sum” problem has been reduced to problems in probabilistic systems and games [EY07,HMS10]:

probability of reachability in Recursive Markov Chains; approximation of Nash equilibria in Shapley’s games.

slide-14
SLIDE 14

Square-root-sum problem

Definition (Square-root-sum problem)

Given naturals A1, . . . , An and A, decide whether

  • 1≤i≤n
  • Ai ≤ A

For instance, √ 518 + √ 855 = 51.9999963 · · · √ 457 + √ 763 = 49.0000129 · · ·

Theorem ([ABKM06])

The square-root-sum problem is in PPPPPPP ⊆ CH ⊆ PSPACE.

slide-15
SLIDE 15

Radical-sum-eq problem

Definition (Radical-sum-eq problem)

Given rationals (Ai)i∈I, (Bi)i∈I and (Ci)i∈I with 0 ≤ Bi and 0 ≤ Ai ≤ 1, decide whether

  • i∈I

Ci · BAi

i

= 0.

slide-16
SLIDE 16

Radical-sum-eq problem

Definition (Radical-sum-eq problem)

Given rationals (Ai)i∈I, (Bi)i∈I and (Ci)i∈I with 0 ≤ Bi and 0 ≤ Ai ≤ 1, decide whether

  • i∈I

Ci · BAi

i

= 0.

Quoting Chee Yap

Whether or not we can decide zero determines whether or not we can compute correctly.

slide-17
SLIDE 17

Radical-sum-eq problem

Definition (Radical-sum-eq problem)

Given rationals (Ai)i∈I, (Bi)i∈I and (Ci)i∈I with 0 ≤ Bi and 0 ≤ Ai ≤ 1, decide whether

  • i∈I

Ci · BAi

i

= 0.

Theorem ([Bl¨

  • 91])

Radical-sum-eq is in PTIME.

slide-18
SLIDE 18

Radical-sum-eq problem

Definition (Radical-sum-eq problem)

Given rationals (Ai)i∈I, (Bi)i∈I and (Ci)i∈I with 0 ≤ Bi and 0 ≤ Ai ≤ 1, decide whether

  • i∈I

Ci · BAi

i

= 0.

Theorem ([Bl¨

  • 91])

Radical-sum-eq is in PTIME.

Our result

Radical-sum-eq is in uniform-TC0.

slide-19
SLIDE 19

Outline of the talk

1

Introduction

2

Circuit Complexity

3

RadicalSumEq is in uniform TC0

4

Conclusions

slide-20
SLIDE 20

Outline of the talk

1

Introduction

2

Circuit Complexity

3

RadicalSumEq is in uniform TC0

4

Conclusions

slide-21
SLIDE 21

Computing with circuits

Circuit complexity

Complexity classes within PTIME: build a boolean circuit depending only on the size of the input; compute the values of the output gates (in parallel).

slide-22
SLIDE 22

Computing with circuits

Circuit complexity

Complexity classes within PTIME: build a boolean circuit depending only on the size of the input; compute the values of the output gates (in parallel).

Several parameters

“height” of the circuit: input (size n) height = logi(n)

slide-23
SLIDE 23

Computing with circuits

Circuit complexity

Complexity classes within PTIME: build a boolean circuit depending only on the size of the input; compute the values of the output gates (in parallel).

Several parameters

“height” of the circuit: boolean gates:

¬ ∨ ∧ ∨ ∧ maj

slide-24
SLIDE 24

Computing with circuits

Circuit complexity

Complexity classes within PTIME: build a boolean circuit depending only on the size of the input; compute the values of the output gates (in parallel).

Several parameters

“height” of the circuit: boolean gates:

NCi ¬ ∨ ∧ ∨ ∧ maj

slide-25
SLIDE 25

Computing with circuits

Circuit complexity

Complexity classes within PTIME: build a boolean circuit depending only on the size of the input; compute the values of the output gates (in parallel).

Several parameters

“height” of the circuit: boolean gates:

ACi NCi ¬ ∨ ∧ ∨ ∧ maj

slide-26
SLIDE 26

Computing with circuits

Circuit complexity

Complexity classes within PTIME: build a boolean circuit depending only on the size of the input; compute the values of the output gates (in parallel).

Several parameters

“height” of the circuit: boolean gates:

TCi ACi NCi ¬ ∨ ∧ ∨ ∧ maj

slide-27
SLIDE 27

Computing with circuits

Circuit complexity

Complexity classes within PTIME: build a boolean circuit depending only on the size of the input; compute the values of the output gates (in parallel).

Several parameters

“height” of the circuit: boolean gates: “computational power” to build the circuit: Turing machine for computing circuit Ck:

polynomial time can be relevant; logarithmic space is often used; logarithmic time is especially interesting for smaller classes (AC0, TC0,...).

slide-28
SLIDE 28

Circuit complexity classes

Addition is in (DLOGTIME-uniform) AC0.

a0 b0 s0 a1 b1 s1 a2 b2 s2 a3 b3 s3 s4 ⊗ ⊗ ∧ ⊗ ∧ ∨ ∧ ∨ ⊗ ∧ ∨ ∧ ∧ ∨ ⊗ ∧ ∨ ∨ ∨ ∧ ∧ ∧ ∨

slide-29
SLIDE 29

Circuit complexity classes

Addition is in (DLOGTIME-uniform) AC0. The following problems are in (DLOGTIME-uniform) TC0:

Iterated addition (adding n n-bit integers); Multiplication (of two n-bit integers); Iterated multiplication (multiplying n n-bit numbers); Division (integer division of two n-bit numbers).

slide-30
SLIDE 30

Circuit complexity classes

Addition is in (DLOGTIME-uniform) AC0. The following problems are in (DLOGTIME-uniform) TC0:

Iterated addition (adding n n-bit integers); Multiplication (of two n-bit integers); Iterated multiplication (multiplying n n-bit numbers); Division (integer division of two n-bit numbers).

The following problems are not known to be in TC0:

Greatest common divisor Iterative methods (e.g. Newton’s method for computing

n

√ A)

slide-31
SLIDE 31

Circuit complexity classes

Addition is in (DLOGTIME-uniform) AC0. The following problems are in (DLOGTIME-uniform) TC0:

Iterated addition (adding n n-bit integers); Multiplication (of two n-bit integers); Iterated multiplication (multiplying n n-bit numbers); Division (integer division of two n-bit numbers).

The following problems are not known to be in TC0:

Greatest common divisor Iterative methods (e.g. Newton’s method for computing

n

√ A)

Theorem

NCi ⊆ ACi ⊆ TCi ⊆ NCi+1 ⊆ PTIME for all i.

Theorem

NC1 ⊆ LOGSPACE ⊆ NLOGSPACE ⊆ AC1.

slide-32
SLIDE 32

Outline of the talk

1

Introduction

2

Circuit Complexity

3

RadicalSumEq is in uniform TC0

4

Conclusions

slide-33
SLIDE 33

Bl¨

  • mer’s algorithm

Lemma ([Bl¨

  • 91])

Let (Ai)i∈I and (Bi)i∈I be two finite sequence of positive rational

  • numbers. The radicals B1A1, . . . , BnAn are linearly independent
  • ver ℚ if they are pairwise linearly independant.
slide-34
SLIDE 34

Bl¨

  • mer’s algorithm

Lemma ([Bl¨

  • 91])

Let (Ai)i∈I and (Bi)i∈I be two finite sequence of positive rational

  • numbers. The radicals B1A1, . . . , BnAn are linearly independent
  • ver ℚ if they are pairwise linearly independant.

Algorithm

C1·BA1

1

C3·BA3

3

C5·BA5

5

C2·BA2

2

C4·BA4

4

C6·BA6

6

slide-35
SLIDE 35

Bl¨

  • mer’s algorithm

Lemma ([Bl¨

  • 91])

Let (Ai)i∈I and (Bi)i∈I be two finite sequence of positive rational

  • numbers. The radicals B1A1, . . . , BnAn are linearly independent
  • ver ℚ if they are pairwise linearly independant.

Algorithm

C1·BA1

1

C3·BA3

3

C5·BA5

5

C2·BA2

2

C4·BA4

4

C6·BA6

6

Partition input terms into linearly dependent groups;

slide-36
SLIDE 36

Bl¨

  • mer’s algorithm

Lemma ([Bl¨

  • 91])

Let (Ai)i∈I and (Bi)i∈I be two finite sequence of positive rational

  • numbers. The radicals B1A1, . . . , BnAn are linearly independent
  • ver ℚ if they are pairwise linearly independant.

Algorithm

C1·BA1

1

C3·BA3

3

C5·BA5

5

C2·R1,2·BA1

1

C4·R3,4·BA3

3

C6·R3,6·BA3

3

In each group, rewrite terms with a common radical;

slide-37
SLIDE 37

Bl¨

  • mer’s algorithm

Lemma ([Bl¨

  • 91])

Let (Ai)i∈I and (Bi)i∈I be two finite sequence of positive rational

  • numbers. The radicals B1A1, . . . , BnAn are linearly independent
  • ver ℚ if they are pairwise linearly independant.

Algorithm

C1·BA1

1

C3·BA3

3

C5·BA5

5

C2·R1,2·BA1

1

C4·R3,4·BA3

3

C6·R3,6·BA3

3

Check for zero in each group.

slide-38
SLIDE 38

How to do it in uniform TC0

Lemma

The following problems are in DLOGTIME-uniform TC0:

slide-39
SLIDE 39

How to do it in uniform TC0

Lemma

The following problems are in DLOGTIME-uniform TC0: for integers a < n and B < 2n, compute nO(1) bits of B1/a;

approximation by power series [MT99,HAB02].

slide-40
SLIDE 40

How to do it in uniform TC0

Lemma

The following problems are in DLOGTIME-uniform TC0: for integers a < n and B < 2n, compute nO(1) bits of B1/a; for integers a < n and B < 2n, compute

a

√ B if in ℕ:

compute an integer approximation R of B1/a; check whether (R − 1)a, Ra or (R + 1)a equals B.

slide-41
SLIDE 41

How to do it in uniform TC0

Lemma

The following problems are in DLOGTIME-uniform TC0: for integers a < n and B < 2n, compute nO(1) bits of B1/a; for integers a < n and B < 2n, compute

a

√ B if in ℕ: for integer A and rational B = M/N, compute

A

√ B if in ℚ:

Lemma

If

A

√ B ∈ ℚ, then A is “small” (less than 1 + log(M · N)).

compute C =

A

√ M · NA−1; if it is in ℕ, return C/N.

slide-42
SLIDE 42

How to do it in uniform TC0

Lemma

The following problems are in DLOGTIME-uniform TC0: for integers a < n and B < 2n, compute nO(1) bits of B1/a; for integers a < n and B < 2n, compute

a

√ B if in ℕ: for integer A and rational B = M/N, compute

A

√ B if in ℚ: for A, A′ ∈ ℤ, B, B′ ∈ ℚ>0, compute S =

A

√ B

A′

√ B′ if in ℚ:

Lemma

If

A

√ B

A′

√ B′ is in ℚ, then

either B and B′ are powers of the same rational,

  • r A and A′ are “small”.
slide-43
SLIDE 43

How to do it in uniform TC0

Lemma

The following problems are in DLOGTIME-uniform TC0: for integers a < n and B < 2n, compute nO(1) bits of B1/a; for integers a < n and B < 2n, compute

a

√ B if in ℕ: for integer A and rational B = M/N, compute

A

√ B if in ℚ: for A, A′ ∈ ℤ, B, B′ ∈ ℚ>0, compute S =

A

√ B

A′

√ B′ if in ℚ:

Lemma

S ∈ ℚ iff, writing D = gcd(A, A′), it holds

R =

A

√ BD is in ℚ; R′ =

A′

√ B′D is in ℚ; S =

D

  • R/R′ is in ℚ;
slide-44
SLIDE 44

Outline of the talk

1

Introduction

2

Circuit Complexity

3

RadicalSumEq is in uniform TC0

4

Conclusions

slide-45
SLIDE 45

Conclusions

Radical-Sum-Eq is in DLOGTIME-uniform TC0:

careful implementation of Bl¨

  • mer’s algorithm;

very low complexity class, while the problem looks difficult;

Unfortunately, this does not give much insight on the square-root-sum problem or other geometrical prolems.