Data Structures in Java
Lecture 5: Sequences and Series, Proofs
9/23/2015
1
Daniel Bauer
Data Structures in Java Lecture 5: Sequences and Series, Proofs - - PowerPoint PPT Presentation
Data Structures in Java Lecture 5: Sequences and Series, Proofs 9/23/2015 Daniel Bauer 1 Algorithms An algorithm is a clearly specified set of simple instructions to be followed to solve a problem. Algorithm Analysis Questions:
Lecture 5: Sequences and Series, Proofs
9/23/2015
1
Daniel Bauer
instructions to be followed to solve a problem.
2
3
4
Arithmetic Sequence
4
Arithmetic Sequence Geometric Sequence
4
5
a and common difference d.
5
a and common difference d.
5
6
7
common ratio A.
7
common ratio A.
7
common ratio A.
7
8
8
8
9
and
9
and
9
10
base case: geometric series
11
Legend says that, at the beginning of time, priests were given a puzzle with 64 golden disks. Once they finish moving all the disks according to the rules, the wold is said to end. If the priests move the disks at a rate of 1 disk/second, how long will it take to solve the puzzle?
11
Legend says that, at the beginning of time, priests were given a puzzle with 64 golden disks. Once they finish moving all the disks according to the rules, the wold is said to end. If the priests move the disks at a rate of 1 disk/second, how long will it take to solve the puzzle?
11
Legend says that, at the beginning of time, priests were given a puzzle with 64 golden disks. Once they finish moving all the disks according to the rules, the wold is said to end. If the priests move the disks at a rate of 1 disk/second, how long will it take to solve the puzzle? seconds minutes days years
12
13
cases.”).
small value.
some limit k.
14
15
inductive hypothesis:
16
property does not hold for all cases.”).
T does not hold.
17
contradiction.
18
prime it Pk .
factorization into primes. Such a factorization cannot exist: dividing N by any P1, P2,,…,Pk will always leave a remainder of 1.
19