HW#3.3 notes                                                                    D.W. Matula, March. 23, MMVI

HW#3.4 notes                                                                    D.W. Matula, Oct. 01, 03

 

For b):

Let’s use the patent example:

 

For c):

 

Let’s use the same values as in the b) example:

 

N/D = .3657483750 / .784731

 

Short reciprocal (for .784731) SR = 1.28

 

Multiplying N and D with SR:

N/D = SR*N / SR*D;

 

Values are:

 

.3657483750 / .784731 = .3657483750*1.28 / .784731*1.28

 

.3657483750 / .784731 = .46815792 / 1.00445568

 

This gives the first couple digits or the result (.46). In order to get the next two multiply the digits just determined with the new D:

.46* 1.00445568 = 0.4620496128

and subtract the result:

.46815792 - 0.4620496128 = 0.0061083072

Continue until desired accuracy is obtained.

 

 

For d):

 

Let N = 12345; D = 6789.

 

N/D = 12345 / 6789;

N/D = 12345 / .6789 * 104;

 

Let’s consider .6789 = 1-Eps => Eps = 1-.6789 = 0.3211.

(1+Eps) = 1.3211

 

so,

N/D = 12345 / .6789 * 104;

N/D = 12345 * 10-4/ .6789;

N/D = 12345 * 10-4/ (1-Eps);

N/D = 12345 * 10-4 * (1+Eps) / (1-Eps)* (1+Eps);

N/D = 12345 * 10-4 * (1+Eps) / (1- Eps2);

 

N/D = 12345 * 10-4 * 1.3211 / (1- 0.10310521);

N/D = 12345 * 10-4 * 1.3211 / 0.89689479;

N/D = 1.63089795 / 0.89689479;

 

Next step is to multiply both nominator and denominator with (1 + Eps2); this way the next denominator will be (1- Eps4) which is much closer to 1 than (1- Eps2);

Iterate until desired precision is reached.

 

HW#3.5 notes

 

For a):

Complete Covering Strings

D.W. Matula, Oct. 01, 03

 

Claim: For every k there is a binary (circular) string of length 2k such that the 2k k-bit substrings are all distinct.

 

Example: For k = 3 let b0 b1...b7 = 0001110100…

 

            0: 000

            1:   001

            3:      011

                7:     111

                   6:     110

                      5:     101

                         2:     010

                           4:      100 

 

Argument: Create a 2k-1 vertex directed graph with the vertices labeled by the substrings having binary values 0,1,…, 2k-1-1. For any k-bit string c1 c2...ck , introduce an edge directed from node c1 c2...ck-1 to node c2 c3...ck labeled ck.

 

Then note:

 

 

Example: For k = 4 the graph is:

 

                       

Note the symmetry about the vertical axis (attributable to complimenting the strings).

 

Claim (General): For every k and β ≥ 2, there is a (circular) β-ary string of length βk such that the βk k-digit substrings are all distinct.

 

Argument: Create a graph on βk-1 vertices and βk directed edges with each (k-1) tuple from digits {0, 1, 2, … , β-1} a vertex and for each  k-digit string d1 d2dk, provide a directed edge from vertex d1d2…dk-1, to vertex d2 d3dk labeled dk. The graph is regular of in and out degree β and is Eulerian. The labels on an Eulerian cycle provide the desired circular string.