cd /usr/lib64 (64bit) and /usr/lib (32bit)
ln -s libssl.so.1.0.0 libssl.so.8
ln -s libcrypto.so.1.0.0 libcrypto.so.8
Alpha Blog
error while loading shared libraries: libssl.so.8: cannot open shared object file: No such file or directory
OSI Layers
Application: To allow access to net work resources
Presentation: To translate, encrypt, and compress data
Session:To establish, manage, and terminate sessions
Transport:To provide reliable process-to-process message delivery and error recovery
Network: To move packages from source to destination; to provide internetworking
Data link: To organize bits into frames; to provide hop-to-hop delivery
Physical: To transmit bits over a medium; to provide mechanical and electrical specifications
1.3 Open Set, Closed Set, Neighborhood
Open ball
Closed ball
Sphere
Open set
Closed set
Neighborhood
Topological space
A metric space is a topological space.
1.2 Metric Spaces II
Sequence space s. This space consists of the set of all( bounded or unbounded) sequences of complex numbers and the metric d is defined by…Notice the approach to prove the M4 property.
Space B(A) of bounded functions. Each element x B(A) is a function defined and bounded on a given set A, and the metric is defined by d(x, y) = sup |x(t)-y(t)|.We write B[a, b] for B(A) in the case of an interval A = [a, b] contained by R.
Space lp, Hilbert sequence space l2, Holder and Minkowski inequalities for sums.
Prove it does converge and M4 is satisfied. <a> <b> <c> <d>
<a> an auxiliary inequality
<b> the Holder inequality from <a> p=2 q=2 yield the Cauchy-Schwarz Inequality
<c> the Minkowski inequality from <b>
<d> the triangle inequality M4 from <c>
In these three examples, the last one is the most important one !
1.1 Metric Space
Digest
“We replace the set of real numbers underlying R by an abstract set X (set of elements whose nature is left unspecified) and introduce on X a “distance function” which has only a few of the most fundamental properties of the distance function on R”
Review Contents
The Definition of Metric Space. (X, d) X is a set, d is a metric on X. And the four properties M1-M4, are the axioms.
Subspace.
Examples
Real line R.
Euclidean plane R2 or E2.
Three-dimensional Euclidean space R3.
N-dimensional Euclidean space Rn.
Complex plane C.
N-dimensional unitary space Cn (sometimes called complex Euclidean n-space)
Sequence space l∞. SUP=supremum least upper bound or LUP.l∞ is a sequence space because each element of X (each point of X) is a sequence.
Function space C[a,b]. As a set X we take the set of all real-valued functions x, y,… which are functions of an independent real variable t and are defined and continuous on a given closed interval J = [a, b]. The metric defined by d(x, y) = max|x(t) – y(t)|. max denotes the maximum. C[a, b] the letter C suggests “continuous” This is a function space because every point of C[a, b] is a function.
In calculus we consider a single function or a few functions at a time, but now, in this approach, a function becomes merely a single point in a large space.
Discrete metric space. d(x, x)=0, d(x, y)=1
Hamming distance. Let X be the set of all ordered n-tuples of zeros and ones. The metric d on X is defined by d(x, y) = number of places where x and y have different entries.Hamming distance.
Triangle inequality.
About Abstract Approach
Digest from the <Introductory Functional Analysis With Applications>
“In the abstract approach, one usually starts from a set of elements satisfying certain axioms. The nature of the elements is left unspecified. This is done on purpose. The theory then consists of logical consequences which result from the axioms and are derived as theorems once and for all. This means that in this axiomatic fashion one obtains a mathematical structure whose theory is developed in an abstract way. Those general theorems can then later be applied to various special sets satisfying those axioms.”
“In algebra this approach is used in connection with fields, rings and groups. In functional analysis we use it in connection with abstract spaces. … An abstract space will be a set of (unspecified) elements satisfying certain axioms. And by choosing different sets of axioms we shall obtain different types of abstract spaces. ”
Voila! The term “abstract” is great! When you view something in a high level, the picture will be different!
More general More Abstract!
Entropy encoding
In information theory an entropy encoding is a lossless data compression scheme that is independent of the specific characteristics of the medium.
One of the main types of entropy coding creates and assigns a unique prefix code to each unique symbol that occurs in the input. These entropy encoders then compress data by replacing each fixed-length input symbol by the corresponding variable-length prefix codeword. The length of each codeword is approximately proportional to the negative logarithm of the probability. Therefore, the most common symbols use the shortest codes.
According to Shannon’s source coding theorem, the optimal code length for a symbol is −logbP, where b is the number of symbols used to make output codes and P is the probability of the input symbol.
Two of the most common entropy encoding techniques are Huffman coding and arithmetic coding. If the approximate entropy characteristics of a data stream are known in advance (especially for signal compression), a simpler static code may be useful. These static codes include universal codes (such as Elias gamma coding or Fibonacci coding) and Golomb codes (such as unary coding or Rice coding).
Entropy as a measure of similarity
Besides using entropy encoding as a way to compress digital data, an entropy encoder can also be used to measure the amount of similarity between streams of data. This is done by generating an entropy coder/compressor for each class of data; unknown data is then classified by feeding the uncompressed data to each compressor and seeing which compressor yields the highest compression. The coder with the best compression is probably the coder trained on the data that was most similar to the unknown data.
Huffman coding
In computer science and information theory, Huffman coding is an entropy encoding algorithm used for lossless data compression. The term refers to the use of a variable-length code table for encoding a source symbol (such as a character in a file) where the variable-length code table has been derived in a particular way based on the estimated probability of occurrence for each possible value of the source symbol. It was developed by David A. Huffman while he was a Ph.D. student at MIT, and published in the 1952 paper “A Method for the Construction of Minimum-Redundancy Codes”.
Huffman coding uses a specific method for choosing the representation for each symbol, resulting in a prefix code (sometimes called “prefix-free codes”, that is, the bit string representing some particular symbol is never a prefix of the bit string representing any other symbol) that expresses the most common characters using shorter strings of bits than are used for less common source symbols. Huffman was able to design the most efficient compression method of this type: no other mapping of individual source symbols to unique strings of bits will produce a smaller average output size when the actual symbol frequencies agree with those used to create the code. A method was later found to do this in linear time if input probabilities (also known as weights) are sorted.
For a set of symbols with a uniform probability distribution and a number of members which is a power of two, Huffman coding is equivalent to simple binary block encoding, e.g., ASCII coding. Huffman coding is such a widespread method for creating prefix codes that the term “Huffman code” is widely used as a synonym for “prefix code” even when such a code is not produced by Huffman’s algorithm.
Although Huffman’s original algorithm is optimal for a symbol-by-symbol coding (i.e. a stream of unrelated symbols) with a known input probability distribution, it is not optimal when the symbol-by-symbol restriction is dropped, or when the probability mass functions are unknown, not identically distributed, or notindependent (e.g., “cat” is more common than “cta”). Other methods such as arithmetic coding and LZW coding often have better compression capability: both of these methods can combine an arbitrary number of symbols for more efficient coding, and generally adapt to the actual input statistics, the latter of which is useful when input probabilities are not precisely known or vary significantly within the stream. However, the limitations of Huffman coding should not be overstated; it can be used adaptively, accommodating unknown, changing, or context-dependent probabilities. In the case of known independent and identically-distributed random variables, combining symbols together reduces inefficiency in a way that approaches optimality as the number of symbols combined increases.