Some Problems in Computer Science and Elementary Number Theory Elwyn Berlekamp.

Slides:



Advertisements
Similar presentations
Part VI NP-Hardness. Lecture 23 Whats NP? Hard Problems.
Advertisements

NP-Hard Nattee Niparnan.
Chapter 11 Limitations of Algorithm Power Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
Minimum Clique Partition Problem with Constrained Weight for Interval Graphs Jianping Li Department of Mathematics Yunnan University Jointed by M.X. Chen.
Chapter 8 Topics in Graph Theory
Introduction to Kernel Lower Bounds Daniel Lokshtanov.
Walks, Paths and Circuits Walks, Paths and Circuits Sanjay Jain, Lecturer, School of Computing.
Lecture 24 Coping with NPC and Unsolvable problems. When a problem is unsolvable, that's generally very bad news: it means there is no general algorithm.
Reducibility Class of problems A can be reduced to the class of problems B Take any instance of problem A Show how you can construct an instance of problem.
1 NP-completeness Lecture 2: Jan P The class of problems that can be solved in polynomial time. e.g. gcd, shortest path, prime, etc. There are many.
The class NP Section 7.3 Giorgi Japaridze Theory of Computability.
NP-complete and NP-hard problems Transitivity of polynomial-time many-one reductions Concept of Completeness and hardness for a complexity class Definition.
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
© The McGraw-Hill Companies, Inc., Chapter 8 The Theory of NP-Completeness.
Parallel Scheduling of Complex DAGs under Uncertainty Grzegorz Malewicz.
Hardness Results for Problems P: Class of “easy to solve” problems Absolute hardness results Relative hardness results –Reduction technique.
Techniques for Proving NP-Completeness
The Theory of NP-Completeness
NP-Complete Problems Problems in Computer Science are classified into
CSE 326: Data Structures NP Completeness Ben Lerner Summer 2007.
CSE 421 Algorithms Richard Anderson Lecture 27 NP Completeness.
Chapter 11 Limitations of Algorithm Power Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
Data reduction lower bounds: Problems without polynomial kernels Hans L. Bodlaender Joint work with Downey, Fellows, Hermelin, Thomasse, Yeo.
Properties of the Integers: Mathematical Induction
1 CSCI 2400 section 3 Models of Computation Instructor: Costas Busch.
GRAPH Learning Outcomes Students should be able to:
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
Programming & Data Structures
NP-Complete Problems CSC 331: Algorithm Analysis NP-Complete Problems.
MCS312: NP-completeness and Approximation Algorithms
Chapter 11 Limitations of Algorithm Power. Lower Bounds Lower bound: an estimate on a minimum amount of work needed to solve a given problem Examples:
CSCE350 Algorithms and Data Structure
1 The Theory of NP-Completeness 2012/11/6 P: the class of problems which can be solved by a deterministic polynomial algorithm. NP : the class of decision.
Nattee Niparnan. Easy & Hard Problem What is “difficulty” of problem? Difficult for computer scientist to derive algorithm for the problem? Difficult.
Complexity Classes (Ch. 34) The class P: class of problems that can be solved in time that is polynomial in the size of the input, n. if input size is.
MIT and James Orlin1 NP-completeness in 2005.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSCI 2670 Introduction to Theory of Computing November 29, 2005.
CSE 024: Design & Analysis of Algorithms Chapter 9: NP Completeness Sedgewick Chp:40 David Luebke’s Course Notes / University of Virginia, Computer Science.
NP-COMPLETENESS PRESENTED BY TUSHAR KUMAR J. RITESH BAGGA.
1 Lower Bounds Lower bound: an estimate on a minimum amount of work needed to solve a given problem Examples: b number of comparisons needed to find the.
Techniques for Proving NP-Completeness Show that a special case of the problem you are interested in is NP- complete. For example: The problem of finding.
CSCI 3160 Design and Analysis of Algorithms Tutorial 10 Chengyu Lin.
The Traveling Salesman Problem Over Seventy Years of Research, and a Million in Cash Presented by Vladimir Coxall.
1 The Theory of NP-Completeness 2 Cook ’ s Theorem (1971) Prof. Cook Toronto U. Receiving Turing Award (1982) Discussing difficult problems: worst case.
Erdal Kose CC30.10 These slides are based of Prof. N. Yanofsky Lecture notes.
Lecture 6 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
Limits to Computation How do you analyze a new algorithm? –Put it in the form of existing algorithms that you know the analysis. –For example, given 2.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 7 Time complexity Contents Measuring Complexity Big-O and small-o notation.
Lecture 25 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
NPC.
1 CPSC 320: Intermediate Algorithm Design and Analysis July 30, 2014.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
Introduction to NP Instructor: Neelima Gupta 1.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
CSE 332: NP Completeness, Part II Richard Anderson Spring 2016.
Exhaustive search Exhaustive search is simply a brute- force approach to combinatorial problems. It suggests generating each and every element of the problem.
TU/e Algorithms (2IL15) – Lecture 11 1 Approximation Algorithms.
The Theory of NP-Completeness
More NP-Complete and NP-hard Problems
Richard Anderson Lecture 26 NP-Completeness
Lecture 2-2 NP Class.
Lecture 5 NP Class.
Analysis and design of algorithm
Chapter 11 Limitations of Algorithm Power
The Theory of NP-Completeness
Discrete Mathematics for Computer Science
A Few Sample Reductions
Presentation transcript:

Some Problems in Computer Science and Elementary Number Theory Elwyn Berlekamp

Among most important unsolved problems in mathematics/ computer science Does P = NP ? Does there exist a polynomial time algorithm to solve the Traveling Salesman Problem? =

The Traveling Salesman Problem Given a graph (with n nodes), find a path which runs through all the nodes without any repeats.

Does this graph have a Hamiltonian Path? NO (Proof coming later)

What about this graph? YES

The Traveling Salesman Problem (All P- equivalent) Version 1: Given a graph (with n nodes), find a path which runs through all the nodes without any repeats. Version 1 ′ : Determine whether or not such a path exists. Version 2: Same as 1, except starting and ending points are given. Version 3: Given a graph, find a Hamiltonian cycle which runs through each node once. Version 4: Given the complete graph of n nodes, and a table that specifies a cost to each of its n(n-1)/2 branches. Find the Hamiltonian cycle with least cost. S N Version 5: Given a set of n integers: N={a 1, a 2, a 3 …a n } and a set of pair sums; S = {s 1, s 2,...s k }, find a Hamiltonian path for the graph G whose nodes are N, and there is a branch between a i and a j iff a i + a j ε S.

Interesting Special Case of the Traveling Salesman Problem: Nodes = interval of j + 1- i consecutive integers: [ i, j ] S Permissible pairsums= S = { s 1, s 2 … } S We say [ i, j ] can be chained by S iff a Hamiltonian path exist

Problems: (wide range of difficulty) For what value of n can [1, n ] be chained by squares? by cubes? by k th powers? What is the smallest n such that [1, n ] can be chained by squares? …? Is there a largest n such that [1, n ] cannot be chained by squares? …? If so, what is it?

S= {1, 4, 9, 16, 25, 36, 49, …}

S= {1, 4, 9, 16, 25, 36, 49, …}

S= {1, 4, 9, 16, 25, 36, 49, …}

If branch 2-14 is not used, then use of 18-7 forces an endpoint at 2 or 9. If branch 2-14 is used, then there is an endpoint at 11 or 22. So one endpoint is at 18; the other is among {2,9,11,22} Branch 4-5 third endpoint at 20 or 11 Branch 3-6 third endpoint at 10 or 19 Branch 1-15 third endpoint at 21 or 10 Note: these reductions also work if nodes 24 and/or 23 are absent Let’s now prove this graph has no Hamiltonian Path: 22

Since 8 cannot be an endpoint, branch 1-8 must be used. Since 4 cannot be an endpoint, branch 12-4 must be used Since 24 cannot be an endpoint, branches and 24-1 must be used But now [24,1,8,17,19,6,10,15,21,4,12] is a disjoint cycle So [1,24] cannot be chained by squares, QED

Can [1,22] be chained by squares?

NO Can [1,22] be chained by squares?

In [1,23], branch 13-3 would force a third endpoint at 12 or 23. So it cannot be used What are all solutions of chaining [1,23] by squares?

[1,23] can be chained by squares in exactly three different ways, with endpoints {18,9}, {18,2}, or {18,22}. Dotted lines cannot be used. What are all solutions of chaining [1,23] by squares?

[1,23] chained by squares Conclusions: [1,22] cannot be chained by squares [1,23] CAN be chained by squares [1,24] cannot be chained by squares

8, 1, 15, 10, 6, 3, 13, 12, 4, 5, 11, 14, 2, 7, 9 17,, 16 Squares can chain [1,n] for n= 15, 16, and 17 And 23: 18, 7, 9, 16, 20, 5, 11, 14, 22, 3, 1, 8, 17, 19, 6, 10, 15, 21, 4, 12, 13, 23, 2. And 25: 18, 7, 9, 16, 20, 5, 11, 25, 24, 12, 4, 21, 15, 10, 6, 19, 17, 8, 1, 3, 22, 14, 2, 23, 13. And 26: 18, 7, 9, 16, 20, 5, 11, 25, 24, 12, 13, 3, 22, 14, 2, 23, 26, 10, 6, 19, 17, 8, 1, 15, 21, 4. And 27: 18, 7, 2, 14, 22, 27, 9, 16, 20, 5, 11, 25, 24, 12, 4, 21, 15, 10, 26, 23, 13, 3, 1, 8, 17, 19, 6.

And 28: 18, 7; 2, 23, 26, 10, 6, 19, 17, 8, 28, 21, 15, 1, 24, 25, 11; 14, 22, 27, 9, 16, 20; 5, 4, 12, 13, 3. And 29: 18, 7, (29), 20, 16, 9, 27, 22, 14; 2, 23, 26, 10, 6, 19, 17, 8, 28, 21, 15, 1, 24, 25, 11; 5, 4, 12, 13, 3. And (now trivially) 30 and 31: (31), 18, 7, 29, 20, 16, 9, 27, 22, 14, 2, 23, 26, 10; 6, (30), 19, 17, 8, 28, 21; 15, 1, 24, 25, 11, 5; 4, 12, because {6,19, 30} is the first triangle in the infinite graph. Here is another solution of 29, 30, and 31: (31), 18, 7, 29, 20, 16, 9, 27, 22, 14, 2, 23, 26, 10; 15, 1, 3, 6, (30), 19, 17, 8, 28, 21, 4; 5, 11, 25, 24, 12, 13 which extends to a solution of 31 and 32: 13, 12, 24, 25, 11, 5; 31, 18, 7, 29, 20, 16, 9, 27, 22, 14, 2, 23, 26, 10, 15, 1, 3, 6, 30, 19, 17, 8, 28, 21, 4, (32).

Problems: (wide range of difficulty) For what value of n can [1, n ] be chained by squares? by cubes? by k th powers? What is the smallest n such that [1, n ] can be chained by squares? …? Is there a largest n such that [1, n ] cannot be chained by squares? …? If so, what is it? [Vague?] How fast can the elements of S grow such that questions about chaining [1, n ] remain interesting?

F S [RKG’s Conjecture] Fibonacci numbers, F grow exponentially as fast as any interesting set S.

RKG: F F chains [1, n] for n = F F doesn’t chain [1, n] if n = ,3,4,5, 6, 7,8, 9, 10 11, , Fibonacci # Fibonacci # = {1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144…}

Fibonacci plays Billiards! Joint unpublished result of ERB and RKG [2003]: [1, F k ] is chained by { F k-1, F k, F k+1 } Fibonacci plays Pool! [1,34] is chained by {21,34,55}

Joint unpublished result of ERB and RKG [2003]: [1, F k ] is chained by { F k-1, F k, F k+1 } Fibonacci plays Pool! [1,34] is chained by {21,34,55}

Pythagoras plays Billiards, Too! If a, b, c, is a primitive Pythagorean triplet, with a <b <c and a²=b²=c², then [1, b²] is chained by squares n = 15 is the smallest n such that [1, n] is chained by squares If n < 23 and [1, n] is chained by squares, then it is chained by squares without using 2² = 4 S †Small elements of S aren’t of much use

S Conditions for 4 elements of S to form the corners of a billiard table: B A C D S. A, B, C, D ε S. (A > B > C > D) Corners are at A/2, B/2, C/2, D/2 Perimeter = n = A – C = B – D Height = B – A = C – D Width = B – C

S Conditions for 4 elements of S to form the corners of a billiard table: B A C D S. A, B, C, D ε S. (A > B > C > D) Corners are at A/2, B/2, C/2, D/2 Perimeter = n = A – C = B – D Height = B – A = C – D Width = B – C If all corners are integers and if gcd(height, width) > 2, then path is degenerate. If this gcd = 1, path is complete

If S = {s 1, s 2, …s k, …} Where s 1 < s 2 < … < s k-1 < s k < … And if s k + 2 ≤ n < s k+2 – (s k +2 ) Then S cannot chain [1, n] Proof: Corollaries: Fibs cannot chain [1, n ] unless F k – 2 ≤ n ≤ F k + 1 Squares cannot chain [1, n ] unless n ≥ 15 Cubes cannot chain [1, n ] unless n ≥ sksk s k+ 1 s k+ 2 n x = s k y = x + 1 z = x + 2

FF F chains [1, n ] if n ε F F F F chains [1, n ] if n ε F - 1 F F F F cannot chain [1, n ] if F k < n < F k - 1 Theorem FF F chains only 9 ε F + 1 F and only 11 ε F - 2

F k +2 F k +1 FkFk 3F k 2 F k+1 F k -1 F k +1 - F k 2 F k -1 - F k 2 F k 2

If s k+2 > s k+1 + s k + 1 and { s 1, s 2, …, s k+2 } chains [1,n] then so does { s 1, s 2, …, s k+1 } What is the fastest growing sequence such that for all k, there exists n ( k ), such that { s 1, s 2, …, s k } chains [1, n ] but { s 1, s 2, …, s k-1 } does not? Answer: Super- Fibonaccis: x n = x n- 1 + x n , 1, 1, 3, 5, 9, 15, 25, 41, 68…

9 2515

Engineering of Modified Pool Tables

Can we make a useful pool table whose corners are CUBES?