Escolar Documentos
Profissional Documentos
Cultura Documentos
as this can be used on many Only need to learn a single A compression algorithm(压缩
different computers language 算法) is used
Translates (high level language) The file can be
It is a translator
to low level language decompressed(解压缩) to the
Translates source code line by Lossless exact same state(状态) it was
Executes one line at a time ⽆无损压缩
line before compression
Stops when an error is No data is lost in the process
encountered
Interpreter Repeated words/patterns can
Produces error messages to
Runs error diagnostic(诊断) 解释程序 be indexed(编⼊入索引)
tell user location of error
When the error is fixed it Lossy would reduce the file
continues Programming Language size more (than lossless)
Compression
Python Example 压缩 The redundant(冗余的) data
Translates high-level language can be removed from the files
Operating System and
into machine code/low level Programming Language Images can still be a similar
language
Lossy quality
Translates (the source code) all 有损压缩
in one go(⼀一次性地) There is no requirement for
Characteristics the files to be exactly the
Produces an executable file(可 same as original file
执⾏行行⽂文件) Translators
Files can be sent quicker /
Produces an error report(错误 faster to upload / faster to
报告) download
Compiler
therefore, allows faster compiled program can be Instructions of how to make
编译程序
execution(运⾏行行速度更更快) executed without a compiler
sound
Benefits Data Representation
therefore, allow to just send
Non-audio recording
machine code when code is Provides an executable file
transmitted File created using digital
Java musical instruments